Package org.antlr.v4.runtime.tree.xpath
Class XPathLexer
- java.lang.Object
-
- org.antlr.v4.runtime.Recognizer<java.lang.Integer,LexerATNSimulator>
-
- org.antlr.v4.runtime.Lexer
-
- org.antlr.v4.runtime.tree.xpath.XPathLexer
-
- All Implemented Interfaces:
TokenSource
public class XPathLexer extends Lexer
-
-
Field Summary
Fields Modifier and Type Field Description static ATN_ATNprotected static DFA[]_decisionToDFAstatic java.lang.String_serializedATNprotected static PredictionContextCache_sharedContextCachestatic intANYWHEREstatic intBANGstatic intIDstatic java.lang.String[]modeNamesstatic intROOTstatic intRULE_REFstatic java.lang.String[]ruleNamesstatic intSTRINGstatic intTOKEN_REFstatic java.lang.String[]tokenNamesDeprecated.UseVOCABULARYinstead.static VocabularyVOCABULARYstatic intWILDCARD-
Fields inherited from class 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, SKIP
-
Fields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF
-
-
Constructor Summary
Constructors Constructor Description XPathLexer(CharStream input)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaction(RuleContext _localctx, int ruleIndex, int actionIndex)ATNgetATN()Get theATNused by the recognizer for prediction.java.lang.StringgetGrammarFileName()For debugging and other purposes, might want the grammar name.java.lang.String[]getModeNames()java.lang.String[]getRuleNames()java.lang.StringgetSerializedATN()If this recognizer was generated, it will have a serialized ATN representation of the grammar.java.lang.String[]getTokenNames()Deprecated.VocabularygetVocabulary()Get the vocabulary used by the recognizer.-
Methods inherited from class org.antlr.v4.runtime.Lexer
emit, emit, emitEOF, getAllTokens, getChannel, getChannelNames, 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
-
Methods inherited from class org.antlr.v4.runtime.Recognizer
addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
-
-
-
Field Detail
-
_decisionToDFA
protected static final DFA[] _decisionToDFA
-
_sharedContextCache
protected static final PredictionContextCache _sharedContextCache
-
TOKEN_REF
public static final int TOKEN_REF
- See Also:
- Constant Field Values
-
RULE_REF
public static final int RULE_REF
- See Also:
- Constant Field Values
-
ANYWHERE
public static final int ANYWHERE
- See Also:
- Constant Field Values
-
ROOT
public static final int ROOT
- See Also:
- Constant Field Values
-
WILDCARD
public static final int WILDCARD
- See Also:
- Constant Field Values
-
BANG
public static final int BANG
- See Also:
- Constant Field Values
-
ID
public static final int ID
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
modeNames
public static java.lang.String[] modeNames
-
ruleNames
public static final java.lang.String[] ruleNames
-
VOCABULARY
public static final Vocabulary VOCABULARY
-
tokenNames
@Deprecated public static final java.lang.String[] tokenNames
Deprecated.UseVOCABULARYinstead.
-
_serializedATN
public static final java.lang.String _serializedATN
- See Also:
- Constant Field Values
-
_ATN
public static final ATN _ATN
-
-
Constructor Detail
-
XPathLexer
public XPathLexer(CharStream input)
-
-
Method Detail
-
getTokenNames
@Deprecated public java.lang.String[] 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
-
getVocabulary
public Vocabulary getVocabulary()
Description copied from class:RecognizerGet the vocabulary used by the recognizer.- Overrides:
getVocabularyin classRecognizer<java.lang.Integer,LexerATNSimulator>- Returns:
- A
Vocabularyinstance providing information about the vocabulary used by the grammar.
-
getGrammarFileName
public java.lang.String 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<java.lang.Integer,LexerATNSimulator>
-
getRuleNames
public java.lang.String[] getRuleNames()
- Specified by:
getRuleNamesin classRecognizer<java.lang.Integer,LexerATNSimulator>
-
getSerializedATN
public java.lang.String getSerializedATN()
Description copied from class:RecognizerIf this recognizer was generated, it will have a serialized ATN representation of the grammar.For interpreters, we don't know their serialized ATN despite having created the interpreter from it.
- Overrides:
getSerializedATNin classRecognizer<java.lang.Integer,LexerATNSimulator>
-
getModeNames
public java.lang.String[] getModeNames()
- Overrides:
getModeNamesin classLexer
-
getATN
public ATN getATN()
Description copied from class:RecognizerGet theATNused by the recognizer for prediction.- Specified by:
getATNin classRecognizer<java.lang.Integer,LexerATNSimulator>- Returns:
- The
ATNused by the recognizer for prediction.
-
action
public void action(RuleContext _localctx, int ruleIndex, int actionIndex)
- Overrides:
actionin classRecognizer<java.lang.Integer,LexerATNSimulator>
-
-