public class NoViableAltException extends RecognitionException
| Modifier and Type | Field and Description |
|---|---|
private ATNConfigSet |
deadEndConfigs
Which configurations did we try at input.index() that couldn't match input.LT(1)?
|
private Token |
startToken
The token object at the start index; the input stream might
not be buffering tokens so get a reference to it.
|
| Constructor and Description |
|---|
NoViableAltException(Parser recognizer) |
NoViableAltException(Parser recognizer,
TokenStream input,
Token startToken,
Token offendingToken,
ATNConfigSet deadEndConfigs,
ParserRuleContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
ATNConfigSet |
getDeadEndConfigs() |
Token |
getStartToken() |
getCtx, getExpectedTokens, getInputStream, getOffendingState, getOffendingToken, getRecognizer, setOffendingState, setOffendingTokenprivate final ATNConfigSet deadEndConfigs
private final Token startToken
public NoViableAltException(Parser recognizer)
public NoViableAltException(Parser recognizer, TokenStream input, Token startToken, Token offendingToken, ATNConfigSet deadEndConfigs, ParserRuleContext ctx)
public Token getStartToken()
public ATNConfigSet getDeadEndConfigs()