Package | Description |
---|---|
org.antlr.v4.runtime |
Modifier and Type | Class | Description |
---|---|---|
class |
CommonTokenFactory |
This default implementation of
TokenFactory creates
CommonToken objects. |
Modifier and Type | Field | Description |
---|---|---|
protected TokenFactory<?> |
Lexer._factory |
How to create token objects
|
static TokenFactory<CommonToken> |
CommonTokenFactory.DEFAULT |
The default
CommonTokenFactory instance. |
Modifier and Type | Method | Description |
---|---|---|
TokenFactory<? extends Token> |
Lexer.getTokenFactory() |
|
TokenFactory<?> |
ListTokenSource.getTokenFactory() |
Gets the
TokenFactory this token source is currently using for
creating Token objects from the input. |
TokenFactory<?> |
Parser.getTokenFactory() |
|
abstract TokenFactory<?> |
Recognizer.getTokenFactory() |
|
TokenFactory<?> |
TokenSource.getTokenFactory() |
Gets the
TokenFactory this token source is currently using for
creating Token objects from the input. |
Modifier and Type | Method | Description |
---|---|---|
void |
Lexer.setTokenFactory(TokenFactory<?> factory) |
|
void |
ListTokenSource.setTokenFactory(TokenFactory<?> factory) |
Set the
TokenFactory this token source should use for creating
Token objects from the input. |
void |
Parser.setTokenFactory(TokenFactory<?> factory) |
Tell our token source and error strategy about a new way to create tokens.
|
abstract void |
Recognizer.setTokenFactory(TokenFactory<?> input) |
|
void |
TokenSource.setTokenFactory(TokenFactory<?> factory) |
Set the
TokenFactory this token source should use for creating
Token objects from the input. |
Copyright © 1992–2019 ANTLR. All rights reserved.