Uses of Interface
org.antlr.v4.runtime.TokenFactory
-
Packages that use TokenFactory Package Description org.antlr.v4.runtime -
-
Uses of TokenFactory in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TokenFactory Modifier and Type Class Description class
CommonTokenFactory
This default implementation ofTokenFactory
createsCommonToken
objects.Fields in org.antlr.v4.runtime declared as TokenFactory Modifier and Type Field Description protected TokenFactory<?>
Lexer. _factory
How to create token objectsstatic TokenFactory<CommonToken>
CommonTokenFactory. DEFAULT
The defaultCommonTokenFactory
instance.Methods in org.antlr.v4.runtime that return TokenFactory Modifier and Type Method Description TokenFactory<? extends Token>
Lexer. getTokenFactory()
TokenFactory<?>
ListTokenSource. getTokenFactory()
Gets theTokenFactory
this token source is currently using for creatingToken
objects from the input.TokenFactory<?>
Parser. getTokenFactory()
abstract TokenFactory<?>
Recognizer. getTokenFactory()
TokenFactory<?>
TokenSource. getTokenFactory()
Gets theTokenFactory
this token source is currently using for creatingToken
objects from the input.Methods in org.antlr.v4.runtime with parameters of type TokenFactory Modifier and Type Method Description void
Lexer. setTokenFactory(TokenFactory<?> factory)
void
ListTokenSource. setTokenFactory(TokenFactory<?> factory)
Set theTokenFactory
this token source should use for creatingToken
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 theTokenFactory
this token source should use for creatingToken
objects from the input.
-