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<CommonToken> |
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. |
abstract TokenFactory<?> |
Recognizer.getTokenFactory() |
TokenFactory<?> |
Parser.getTokenFactory() |
TokenFactory<?> |
ListTokenSource.getTokenFactory()
Gets the
TokenFactory this token source is currently using for
creating Token objects from the input. |
TokenFactory<? extends Token> |
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. |
abstract void |
Recognizer.setTokenFactory(TokenFactory<?> input) |
void |
Parser.setTokenFactory(TokenFactory<?> factory)
Tell our token source and error strategy about a new way to create tokens.
|
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–2017 ANTLR. All rights reserved.