From 73a2bb3fdb6ee3a0e9510c4ebcec3be1370c9ecc Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Thu, 15 Mar 2012 08:41:13 -0500 Subject: [PATCH] Add Recognizer.setInterpreter --- runtime/Java/src/org/antlr/v4/runtime/Recognizer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/Java/src/org/antlr/v4/runtime/Recognizer.java b/runtime/Java/src/org/antlr/v4/runtime/Recognizer.java index 331823698..20a5d7d8f 100644 --- a/runtime/Java/src/org/antlr/v4/runtime/Recognizer.java +++ b/runtime/Java/src/org/antlr/v4/runtime/Recognizer.java @@ -62,7 +62,13 @@ public abstract class Recognizer { public abstract ATN getATN(); - public ATNInterpreter getInterpreter() { return _interp; } + public ATNInterpreter getInterpreter() { + return _interp; + } + + public void setInterpreter(ATNInterpreter interpreter) { + _interp = interpreter; + } /** What is the error header, normally line/character position information? */ public String getErrorHeader(RecognitionException e) {