Java.target.apidocs.org.antlr.v4.runtime.LexerNoViableAltException.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
LexerNoViableAltException (ANTLR 4 Runtime (Optimized) 4.13.1.3 API)
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
public class LexerNoViableAltException
extends RecognitionException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors
Constructor and Description
LexerNoViableAltException(Lexer lexer,
CharStream input,
int startIndex,
ATNConfigSet deadEndConfigs)
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ATNConfigSet
getDeadEndConfigs()
CharStream
getInputStream()
Gets the input stream which is the symbol source for the recognizer where
this exception was thrown.
int
getStartIndex()
String
toString()
-
Methods inherited from class org.antlr.v4.runtime.RecognitionException
getContext, getExpectedTokens, getOffendingState, getOffendingToken, getOffendingToken, getRecognizer, setOffendingState, setOffendingToken
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
Constructor Detail
-
LexerNoViableAltException
public LexerNoViableAltException(@Nullable
Lexer lexer,
@NotNull
CharStream input,
int startIndex,
@Nullable
ATNConfigSet deadEndConfigs)
-
Method Detail
-
getStartIndex
public int getStartIndex()
-
getDeadEndConfigs
@Nullable
public ATNConfigSet getDeadEndConfigs()
-
getInputStream
public CharStream 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 class RecognitionException
- 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.
Copyright © 1992–2023 Daniel Sun. All rights reserved.