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:
java.io.Serializable
public class LexerNoViableAltException extends RecognitionException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ATNConfigSetdeadEndConfigsWhich configurations did we try at input.index() that couldn't match input.LA(1)?private intstartIndexMatching attempted at what input index?
-
Constructor Summary
Constructors Constructor Description LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ATNConfigSetgetDeadEndConfigs()CharStreamgetInputStream()Gets the input stream which is the symbol source for the recognizer where this exception was thrown.intgetStartIndex()java.lang.StringtoString()-
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getCtx, getExpectedTokens, getOffendingState, getOffendingToken, getRecognizer, setOffendingState, setOffendingToken
-
-
-
-
Field Detail
-
startIndex
private final int startIndex
Matching attempted at what input index?
-
deadEndConfigs
private final ATNConfigSet deadEndConfigs
Which configurations did we try at input.index() that couldn't match input.LA(1)?
-
-
Constructor Detail
-
LexerNoViableAltException
public LexerNoViableAltException(Lexer lexer, CharStream input, int startIndex, ATNConfigSet deadEndConfigs)
-
-
Method Detail
-
getStartIndex
public int getStartIndex()
-
getDeadEndConfigs
public ATNConfigSet getDeadEndConfigs()
-
getInputStream
public CharStream 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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-