Package org.antlr.v4.runtime.tree.xpath
Class XPathLexer
java.lang.Object
org.antlr.v4.runtime.Recognizer<Integer,LexerATNSimulator>
org.antlr.v4.runtime.Lexer
org.antlr.v4.runtime.tree.xpath.XPathLexer
- All Implemented Interfaces:
TokenSource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ATNprivate static final String[]static final Stringprivate static final String[]static final intstatic final intstatic String[]static final intstatic String[]static final intstatic final intstatic final String[]static final intstatic final intstatic final String[]Deprecated.static final Vocabularystatic final intFields 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, SKIPFields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaction(RuleContext _localctx, int ruleIndex, int actionIndex) String[]For debugging and other purposes, might want the grammar name.String[]String[]If this recognizer was generated, it will have a serialized ATN representation of the grammar.String[]Deprecated.Get the vocabulary used by the recognizer.private voidID_action(RuleContext _localctx, int actionIndex) private static String[]private static String[]private static String[]private booleanNameChar_sempred(RuleContext _localctx, int predIndex) private booleanNameStartChar_sempred(RuleContext _localctx, int predIndex) booleansempred(RuleContext _localctx, int ruleIndex, int predIndex) Methods inherited from class 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, skip, validateInputStreamMethods inherited from class org.antlr.v4.runtime.Recognizer
addErrorListener, getATN, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getParseInfo, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, precpred, removeErrorListener, removeErrorListeners, setInterpreter, setState
-
Field Details
-
TOKEN_REF
public static final int TOKEN_REF- See Also:
-
RULE_REF
public static final int RULE_REF- See Also:
-
ANYWHERE
public static final int ANYWHERE- See Also:
-
ROOT
public static final int ROOT- See Also:
-
WILDCARD
public static final int WILDCARD- See Also:
-
BANG
public static final int BANG- See Also:
-
ID
public static final int ID- See Also:
-
STRING
public static final int STRING- See Also:
-
channelNames
-
modeNames
-
ruleNames
-
_LITERAL_NAMES
-
_SYMBOLIC_NAMES
-
VOCABULARY
-
tokenNames
Deprecated.UseVOCABULARYinstead. -
_serializedATN
- See Also:
-
_ATN
-
-
Constructor Details
-
XPathLexer
-
-
Method Details
-
makeRuleNames
-
makeLiteralNames
-
makeSymbolicNames
-
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
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.
-
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>
-
getRuleNames
- Specified by:
getRuleNamesin classRecognizer<Integer,LexerATNSimulator>
-
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<Integer,LexerATNSimulator>
-
getChannelNames
- Overrides:
getChannelNamesin classLexer
-
getModeNames
- Overrides:
getModeNamesin classLexer
-
action
- Overrides:
actionin classRecognizer<Integer,LexerATNSimulator>
-
ID_action
-
sempred
- Overrides:
sempredin classRecognizer<Integer,LexerATNSimulator>
-
NameChar_sempred
-
NameStartChar_sempred
-
VOCABULARYinstead.