Package org.antlr.v4.runtime
Class LexerNoViableAltException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.antlr.v4.runtime.RecognitionException
org.antlr.v4.runtime.LexerNoViableAltException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ATNConfigSetWhich configurations did we try at input.index() that couldn't match input.LA(1)?private static final longprivate final intMatching attempted at what input index? -
Constructor Summary
ConstructorsConstructorDescriptionLexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs) -
Method Summary
Modifier and TypeMethodDescriptionGets the input stream which is the symbol source for the recognizer where this exception was thrown.inttoString()Methods inherited from class org.antlr.v4.runtime.RecognitionException
getContext, getExpectedTokens, getOffendingState, getOffendingToken, getOffendingToken, getRecognizer, setOffendingState, setOffendingTokenMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
startIndex
private final int startIndexMatching attempted at what input index? -
deadEndConfigs
Which configurations did we try at input.index() that couldn't match input.LA(1)?
-
-
Constructor Details
-
LexerNoViableAltException
public LexerNoViableAltException(@Nullable Lexer lexer, @NotNull CharStream input, int startIndex, @Nullable ATNConfigSet deadEndConfigs)
-
-
Method Details
-
getStartIndex
public int getStartIndex() -
getDeadEndConfigs
-
getInputStream
Description copied from class:RecognitionExceptionGets 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
null.- Overrides:
getInputStreamin classRecognitionException- Returns:
- The input stream which is the symbol source for the recognizer
where this exception was thrown, or
nullif the stream is not available.
-
toString
-