public class LexerNoViableAltException extends RecognitionException
| 构造器和说明 |
|---|
LexerNoViableAltException(Lexer lexer,
CharStream input,
int startIndex,
ATNConfigSet deadEndConfigs) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
getContext, getExpectedTokens, getOffendingState, getOffendingToken, getOffendingToken, getRecognizer, setOffendingState, setOffendingTokenpublic LexerNoViableAltException(@Nullable
Lexer lexer,
@NotNull
CharStream input,
int startIndex,
@Nullable
ATNConfigSet deadEndConfigs)
public int getStartIndex()
@Nullable public ATNConfigSet getDeadEndConfigs()
public CharStream getInputStream()
RecognitionExceptionIf the input stream is not available, this method returns null.
getInputStream 在类中 RecognitionExceptionnull if the stream is not
available.Copyright © 1992–2022 Daniel Sun. All rights reserved.