public class RecognitionException extends RuntimeException
Constructor and Description |
---|
RecognitionException(Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
RecognitionException(String message,
Recognizer<?,?> recognizer,
IntStream input,
ParserRuleContext ctx) |
Modifier and Type | Method and Description |
---|---|
RuleContext |
getCtx() |
IntervalSet |
getExpectedTokens() |
IntStream |
getInputStream() |
int |
getOffendingState()
Where was the parser in the ATN when the error occurred?
For No viable alternative exceptions, this is the decision state number.
|
Token |
getOffendingToken() |
Recognizer<?,?> |
getRecognizer() |
protected void |
setOffendingState(int offendingState) |
protected void |
setOffendingToken(Token offendingToken) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RecognitionException(@Nullable Recognizer<?,?> recognizer, IntStream input, @Nullable ParserRuleContext ctx)
public RecognitionException(String message, @Nullable Recognizer<?,?> recognizer, IntStream input, @Nullable ParserRuleContext ctx)
public int getOffendingState()
protected final void setOffendingState(int offendingState)
public IntervalSet getExpectedTokens()
public RuleContext getCtx()
public IntStream getInputStream()
public Token getOffendingToken()
protected final void setOffendingToken(Token offendingToken)
public Recognizer<?,?> getRecognizer()
Copyright © 1992-2013 ANTLR. All Rights Reserved.