| Package | Description |
|---|---|
| org.antlr.v4.runtime |
| Modifier and Type | Class and Description |
|---|---|
class |
CommonTokenFactory
This default implementation of
TokenFactory creates
CommonToken objects. |
| Modifier and Type | Field and Description |
|---|---|
protected TokenFactory |
Lexer._factory
How to create token objects
|
static TokenFactory |
CommonTokenFactory.DEFAULT
The default
CommonTokenFactory instance. |
| Modifier and Type | Method and Description |
|---|---|
TokenFactory |
TokenSource.getTokenFactory()
Gets the
TokenFactory this token source is currently using for
creating Token objects from the input. |
TokenFactory |
Parser.getTokenFactory() |
TokenFactory |
ListTokenSource.getTokenFactory()
Gets the
TokenFactory this token source is currently using for
creating Token objects from the input. |
TokenFactory |
Lexer.getTokenFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
TokenSource.setTokenFactory(TokenFactory factory)
Set the
TokenFactory this token source should use for creating
Token objects from the input. |
void |
ListTokenSource.setTokenFactory(TokenFactory factory)
Set the
TokenFactory this token source should use for creating
Token objects from the input. |
void |
Lexer.setTokenFactory(TokenFactory factory) |
Copyright © 1992–2024 Daniel Sun. All rights reserved.