Class LexerInterpreter
java.lang.Object
org.graalvm.shadowed.org.antlr.v4.runtime.Recognizer<Integer,LexerATNSimulator>
org.graalvm.shadowed.org.antlr.v4.runtime.Lexer
org.graalvm.shadowed.org.antlr.v4.runtime.LexerInterpreter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DFA[]protected final PredictionContextCacheprotected final ATNprotected final String[]protected final Stringprotected final String[]protected final String[]protected final String[]Deprecated.Fields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.Lexer
_channel, _factory, _hitEOF, _input, _mode, _modeStack, _text, _token, _tokenFactorySourcePair, _tokenStartCharIndex, _tokenStartCharPositionInLine, _tokenStartLine, _type, DEFAULT_MODE, DEFAULT_TOKEN_CHANNEL, HIDDEN, MAX_CHAR_VALUE, MIN_CHAR_VALUE, MORE, SKIPFields inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.Recognizer
_interp, EOF -
Constructor Summary
ConstructorsConstructorDescriptionLexerInterpreter(String grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input) Deprecated.LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> channelNames, Collection<String> modeNames, ATN atn, CharStream input) LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input) Deprecated. -
Method Summary
Methods inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getCharErrorDisplay, getCharIndex, getCharPositionInLine, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, nextToken, notifyListeners, popMode, pushMode, recover, recover, reset, setChannel, setCharPositionInLine, setInputStream, setLine, setText, setToken, setTokenFactory, setType, skipMethods inherited from class org.graalvm.shadowed.org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getSerializedATN, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
Field Details
-
grammarFileName
-
atn
-
tokenNames
Deprecated. -
ruleNames
-
channelNames
-
modeNames
-
_decisionToDFA
-
-
Constructor Details
-
LexerInterpreter
@Deprecated public LexerInterpreter(String grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input) Deprecated. -
LexerInterpreter
@Deprecated public LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input) Deprecated. -
LexerInterpreter
public LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> channelNames, Collection<String> modeNames, ATN atn, CharStream input)
-
-
Method Details
-
getATN
Description copied from class:RecognizerGet theATNused by the recognizer for prediction.- Specified by:
getATNin classRecognizer<Integer,LexerATNSimulator> - Returns:
- The
ATNused by the recognizer for prediction.
-
getGrammarFileName
Description copied from class:RecognizerFor debugging and other purposes, might want the grammar name. Have ANTLR generate an implementation for this method.- Specified by:
getGrammarFileNamein classRecognizer<Integer,LexerATNSimulator>
-
getTokenNames
Deprecated.Description copied from class:LexerUsed to print out token names like ID during debugging and error reporting. The generated parsers implement a method that overrides this to point to their String[] tokenNames.- Overrides:
getTokenNamesin classLexer
-
getRuleNames
- Specified by:
getRuleNamesin classRecognizer<Integer,LexerATNSimulator>
-
getChannelNames
- Overrides:
getChannelNamesin classLexer
-
getModeNames
- Overrides:
getModeNamesin classLexer
-
getVocabulary
Description copied from class:RecognizerGet the vocabulary used by the recognizer.- Overrides:
getVocabularyin classRecognizer<Integer,LexerATNSimulator> - Returns:
- A
Vocabularyinstance providing information about the vocabulary used by the grammar.
-