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:
-
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.int
toString()
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getCtx, getExpectedTokens, getOffendingState, getOffendingToken, getRecognizer, setOffendingState, setOffendingToken
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
LexerNoViableAltException
public LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)
-
-
Method Details
-
getStartIndex
public int getStartIndex() -
getDeadEndConfigs
-
getInputStream
Description copied from class:RecognitionException
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
null
.- Overrides:
getInputStream
in classRecognitionException
- Returns:
- The input stream which is the symbol source for the recognizer
where this exception was thrown, or
null
if the stream is not available.
-
toString
-