public class LexerInterpreter extends Lexer
Modifier and Type | Field and Description |
---|---|
protected DFA[] |
_decisionToDFA |
protected PredictionContextCache |
_sharedContextCache |
protected ATN |
atn |
protected String[] |
channelNames |
protected String |
grammarFileName |
protected String[] |
modeNames |
protected String[] |
ruleNames |
protected String[] |
tokenNames
Deprecated.
|
_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, SKIP
_interp, EOF
Constructor and Description |
---|
LexerInterpreter(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> modeNames,
ATN atn,
CharStream input)
Deprecated.
|
LexerInterpreter(String grammarFileName,
Vocabulary vocabulary,
Collection<String> ruleNames,
Collection<String> channelNames,
Collection<String> modeNames,
ATN atn,
CharStream input) |
Modifier and Type | Method and Description |
---|---|
ATN |
getATN()
Get the
ATN used by the recognizer for prediction. |
String[] |
getChannelNames() |
String |
getGrammarFileName()
For debugging and other purposes, might want the grammar name.
|
String[] |
getModeNames() |
String[] |
getRuleNames() |
String[] |
getTokenNames()
Deprecated.
|
Vocabulary |
getVocabulary()
Get the vocabulary used by the recognizer.
|
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, skip
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getSerializedATN, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
protected final String grammarFileName
protected final ATN atn
@Deprecated protected final String[] tokenNames
protected final String[] ruleNames
protected final String[] channelNames
protected final String[] modeNames
protected final DFA[] _decisionToDFA
protected final PredictionContextCache _sharedContextCache
@Deprecated public LexerInterpreter(String grammarFileName, Collection<String> tokenNames, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input)
@Deprecated public LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> modeNames, ATN atn, CharStream input)
public LexerInterpreter(String grammarFileName, Vocabulary vocabulary, Collection<String> ruleNames, Collection<String> channelNames, Collection<String> modeNames, ATN atn, CharStream input)
public ATN getATN()
Recognizer
ATN
used by the recognizer for prediction.getATN
in class Recognizer<Integer,LexerATNSimulator>
ATN
used by the recognizer for prediction.public String getGrammarFileName()
Recognizer
getGrammarFileName
in class Recognizer<Integer,LexerATNSimulator>
@Deprecated public String[] getTokenNames()
Lexer
getTokenNames
in class Lexer
public String[] getRuleNames()
getRuleNames
in class Recognizer<Integer,LexerATNSimulator>
public String[] getChannelNames()
getChannelNames
in class Lexer
public String[] getModeNames()
getModeNames
in class Lexer
public Vocabulary getVocabulary()
Recognizer
getVocabulary
in class Recognizer<Integer,LexerATNSimulator>
Vocabulary
instance providing information about the
vocabulary used by the grammar.Copyright © 1992–2017 ANTLR. All rights reserved.