Example usage for Java org.antlr.v4.runtime RecognitionException fields, constructors, methods, implement or subclass
The text is from its open source code.
RecognitionException(Recognizer, ?> recognizer, IntStream input, ParserRuleContext ctx) | |
RecognitionException(String message, Recognizer, ?> recognizer, IntStream input, ParserRuleContext ctx) |
RuleContext | getCtx() Gets the RuleContext at the time this exception was thrown. |
IntervalSet | getExpectedTokens() Gets the set of input symbols which could potentially follow the previously matched symbol at the time this exception was thrown. |
IntStream | getInputStream() Gets the input stream which is the symbol source for the recognizer where this exception was thrown. |
int | getOffendingState() Get the ATN state number the parser was in at the time the error occurred. |
Token | getOffendingToken() |
Recognizer,?> | getRecognizer() Gets the Recognizer where this exception occurred. |