| Modifier and Type | Field and Description |
|---|---|
| private final RuleContext | |
| private final IntStream | |
| private int | |
| private Token | offendingToken
The current |
| private final Recognizer | recognizer
The |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | RecognitionException(String message, Recognizer<Token, ?> recognizer, IntStream input, ParserRuleContext ctx)
|
| Modifier and Type | Method and Description |
|---|---|
| public RuleContext | Returns: TheRuleContext at the time this exception was thrown.
If the context is not available, this method returns null.Gets the |
| public IntervalSet | Returns: The set of token types that could potentially follow the current state in the ATN, ornull if the information is not available.Gets the set of input symbols which could potentially follow the previously matched symbol at the time this exception was thrown. |
| public IntStream | Returns: The input stream which is the symbol source for the recognizer where this exception was thrown, ornull if the stream is not
available.Gets the input stream which is the symbol source for the recognizer where this exception was thrown. |
| public int | |
| public Token | |
| public <T> T | |
| public Recognizer | Returns: The recognizer where this exception occurred, ornull if
the recognizer is not available.Gets the |
| protected final void | |
| protected final <Symbol extends Token> void |
| ctx | back to summary |
|---|---|
| private final RuleContext ctx
| |
| input | back to summary |
|---|---|
| private final IntStream input
| |
| offendingState | back to summary |
|---|---|
| private int offendingState | |
| offendingToken | back to summary |
|---|---|
| private Token offendingToken The current | |
| recognizer | back to summary |
|---|---|
| private final Recognizer<?, ?> recognizer The | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| RecognitionException | back to summary |
|---|---|
| public RecognitionException(Lexer lexer, CharStream input) | |
| RecognitionException | back to summary |
|---|---|
| public RecognitionException(Recognizer<Token, ?> recognizer, IntStream input, ParserRuleContext ctx) | |
| RecognitionException | back to summary |
|---|---|
| public RecognitionException(String message, Recognizer<Token, ?> recognizer, IntStream input, ParserRuleContext ctx) | |
| getContext | back to summary |
|---|---|
| public RuleContext getContext() Gets the If the context is not available, this method returns
| |
| getExpectedTokens | back to summary |
|---|---|
| public IntervalSet getExpectedTokens() Gets the set of input symbols which could potentially follow the previously matched symbol at the time this exception was thrown. If the set of expected tokens is not known and could not be computed,
this method returns
| |
| getInputStream | back to summary |
|---|---|
| public IntStream getInputStream() Gets the input stream which is the symbol source for the recognizer where this exception was thrown. If the input stream is not available, this method returns | |
| getOffendingState | back to summary |
|---|---|
| public int getOffendingState() Get the ATN state number the parser was in at the time the error
occurred. For If the state number is not known, this method returns -1. | |
| getOffendingToken | back to summary |
|---|---|
public Token getOffendingToken()
| |
| getOffendingToken | back to summary |
|---|---|
public <T> T getOffendingToken(Recognizer<T, ?> recognizer)
| |
| getRecognizer | back to summary |
|---|---|
| public Recognizer Gets the If the recognizer is not available, this method returns
| |
| setOffendingState | back to summary |
|---|---|
| protected final void setOffendingState(int offendingState) | |
| setOffendingToken | back to summary |
|---|---|
| protected final <Symbol extends Token> void setOffendingToken(Recognizer<Symbol, ?> recognizer, Symbol offendingToken) | |