| 程序包 | 说明 |
|---|---|
| org.antlr.v4.runtime | |
| org.antlr.v4.runtime.tree.pattern | |
| org.antlr.v4.runtime.tree.xpath |
| 限定符和类型 | 类和说明 |
|---|---|
class |
Lexer
A lexer is recognizer that draws input symbols from a character stream.
|
class |
LexerInterpreter |
class |
ListTokenSource
Provides an implementation of
TokenSource as a wrapper around a list
of Token objects. |
| 限定符和类型 | 字段和说明 |
|---|---|
protected TokenSource |
UnbufferedTokenStream.tokenSource |
protected TokenSource |
BufferedTokenStream.tokenSource
The
TokenSource from which tokens for this stream are fetched. |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Tuple2<? extends TokenSource,CharStream> |
Lexer._tokenFactorySourcePair |
protected static Tuple2<TokenSource,CharStream> |
CommonToken.EMPTY_SOURCE
An empty
Tuple2 which is used as the default value of
CommonToken.source for tokens that do not have a source. |
protected Tuple2<? extends TokenSource,CharStream> |
CommonToken.source
This is the backing field for
CommonToken.getTokenSource() and
CommonToken.getInputStream(). |
| 限定符和类型 | 方法和说明 |
|---|---|
TokenSource |
UnbufferedTokenStream.getTokenSource() |
TokenSource |
TokenStream.getTokenSource()
Gets the underlying
TokenSource which provides tokens for this
stream. |
TokenSource |
Token.getTokenSource()
Gets the
TokenSource which created this token. |
TokenSource |
CommonToken.getTokenSource() |
TokenSource |
BufferedTokenStream.getTokenSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Token |
DefaultErrorStrategy.constructToken(TokenSource tokenSource,
int expectedTokenType,
String tokenText,
Token current) |
void |
BufferedTokenStream.setTokenSource(TokenSource tokenSource)
Reset this token stream by setting its token source.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Token |
TokenFactory.create(Tuple2<? extends TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine)
This is the method used to create tokens in the lexer and in the
error handling strategy.
|
CommonToken |
CommonTokenFactory.create(Tuple2<? extends TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine) |
| 构造器和说明 |
|---|
BufferedTokenStream(TokenSource tokenSource) |
CommonTokenStream(TokenSource tokenSource)
Constructs a new
CommonTokenStream using the specified token
source and the default token channel (Token.DEFAULT_CHANNEL). |
CommonTokenStream(TokenSource tokenSource,
int channel)
Constructs a new
CommonTokenStream using the specified token
source and filtering tokens to the specified channel. |
UnbufferedTokenStream(TokenSource tokenSource) |
UnbufferedTokenStream(TokenSource tokenSource,
int bufferSize) |
| 构造器和说明 |
|---|
CommonToken(Tuple2<? extends TokenSource,CharStream> source,
int type,
int channel,
int start,
int stop) |
| 限定符和类型 | 方法和说明 |
|---|---|
TokenSource |
RuleTagToken.getTokenSource()
Gets the
TokenSource which created this token. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
XPathLexer |
Copyright © 1992–2022 Daniel Sun. All rights reserved.