public class XPathLexer extends Lexer
Modifier and Type | Field and Description |
---|---|
static int |
ANYWHERE |
static int |
BANG |
protected int |
charPositionInLine |
static int |
ID |
protected int |
line |
static String[] |
modeNames |
static int |
ROOT |
static int |
RULE_REF |
static String[] |
ruleNames |
static int |
STRING |
static int |
TOKEN_REF |
static String[] |
tokenNames
Deprecated.
Use
VOCABULARY instead. |
static Vocabulary |
VOCABULARY |
static int |
WILDCARD |
_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 |
---|
XPathLexer(CharStream input) |
Modifier and Type | Method and Description |
---|---|
void |
consume() |
ATN |
getATN()
Get the
ATN used by the recognizer for prediction. |
int |
getCharPositionInLine()
Get the index into the current line for the current position in the input
stream.
|
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.
|
boolean |
isNameChar(int c) |
boolean |
isNameStartChar(int c) |
String |
matchID() |
String |
matchString() |
Token |
nextToken()
Return a token from this source; i.e., match a token on the char
stream.
|
emit, emit, emitEOF, getAllTokens, getChannel, getChannelNames, getCharErrorDisplay, getCharIndex, getErrorDisplay, getErrorDisplay, getInputStream, getLine, getSourceName, getText, getToken, getTokenFactory, getType, mode, more, 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
public static final int TOKEN_REF
public static final int RULE_REF
public static final int ANYWHERE
public static final int ROOT
public static final int WILDCARD
public static final int BANG
public static final int ID
public static final int STRING
public static String[] modeNames
public static final String[] ruleNames
public static final Vocabulary VOCABULARY
@Deprecated public static final String[] tokenNames
VOCABULARY
instead.protected int line
protected int charPositionInLine
public XPathLexer(CharStream input)
public String getGrammarFileName()
Recognizer
getGrammarFileName
in class Recognizer<Integer,LexerATNSimulator>
public String[] getRuleNames()
getRuleNames
in class Recognizer<Integer,LexerATNSimulator>
public String[] getModeNames()
getModeNames
in class Lexer
@Deprecated public String[] getTokenNames()
Lexer
getTokenNames
in class Lexer
public Vocabulary getVocabulary()
Recognizer
getVocabulary
in class Recognizer<Integer,LexerATNSimulator>
Vocabulary
instance providing information about the
vocabulary used by the grammar.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 Token nextToken()
Lexer
nextToken
in interface TokenSource
nextToken
in class Lexer
public void consume()
public int getCharPositionInLine()
TokenSource
getCharPositionInLine
in interface TokenSource
getCharPositionInLine
in class Lexer
public String matchID()
public String matchString()
public boolean isNameChar(int c)
public boolean isNameStartChar(int c)
Copyright © 1992–2021 ANTLR. All rights reserved.