NoViableAltException

TODO add class description

Constructors

this
this(Parser recognizer)
Undocumented in source.
this
this(Parser recognizer, TokenStream input, Token startToken, Token offendingToken, ATNConfigSet deadEndConfigs, ParserRuleContext ctx)
Undocumented in source.

Members

Functions

getDeadEndConfigs
ATNConfigSet getDeadEndConfigs()
Undocumented in source. Be warned that the author may not have intended to support it.
getStartToken
Token getStartToken()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From RecognitionException

recognizer
InterfaceRecognizer recognizer;

The {@link Recognizer} where this exception originated.

getOffendingState
int getOffendingState()

Get the ATN state number the parser was in at the time the error occurred. For {@link NoViableAltException} and {@link LexerNoViableAltException} exceptions, this is the {@link DecisionState} number. For others, it is the state whose outgoing edge we couldn't match.

setOffendingState
void setOffendingState(int offendingState)
Undocumented in source. Be warned that the author may not have intended to support it.
getExpectedTokens
IntervalSet getExpectedTokens()

Gets the set of input symbols which could potentially follow the previously matched symbol at the time this exception was thrown.

getCtx
RuleContext getCtx()

Gets the {@link RuleContext} at the time this exception was thrown.

getInputStream
IntStream getInputStream()
Undocumented in source. Be warned that the author may not have intended to support it.
getOffendingToken
Token getOffendingToken()
Undocumented in source. Be warned that the author may not have intended to support it.
setOffendingToken
void setOffendingToken(Token offendingToken)
Undocumented in source. Be warned that the author may not have intended to support it.
getRecognizer
InterfaceRecognizer getRecognizer()

Gets the {@link Recognizer} where this exception occurred.

Meta