Package | Description |
---|---|
org.antlr.v4.runtime |
Modifier and Type | Class and Description |
---|---|
class |
CommonTokenFactory |
Modifier and Type | Field and Description |
---|---|
protected TokenFactory<?> |
Lexer._factory
How to create token objects
|
protected TokenFactory<?> |
DefaultErrorStrategy._factory
How to create token objects
|
static TokenFactory<CommonToken> |
CommonTokenFactory.DEFAULT |
Modifier and Type | Method and Description |
---|---|
TokenFactory<?> |
TokenSource.getTokenFactory()
Gets the factory used for constructing tokens.
|
TokenFactory<? extends Token> |
Lexer.getTokenFactory() |
Modifier and Type | Method and Description |
---|---|
void |
TokenSource.setTokenFactory(TokenFactory<?> factory)
Optional method that lets users set factory in lexer or other source
|
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 |
Lexer.setTokenFactory(TokenFactory<?> factory) |
void |
DefaultErrorStrategy.setTokenFactory(TokenFactory<?> factory) |
void |
ANTLRErrorStrategy.setTokenFactory(TokenFactory<?> factory)
To create missing tokens, we need a factory
|
Copyright © 1992-2013 ANTLR. All Rights Reserved.