Uses of Interface
org.antlr.v4.runtime.TokenFactory
Packages that use TokenFactory
-
Uses of TokenFactory in org.antlr.v4.runtime
Classes in org.antlr.v4.runtime that implement TokenFactoryModifier and TypeClassDescriptionclass
This default implementation ofTokenFactory
createsCommonToken
objects.Fields in org.antlr.v4.runtime declared as TokenFactoryModifier and TypeFieldDescriptionprotected TokenFactory
<?> Lexer._factory
How to create token objectsprivate TokenFactory
<?> ListTokenSource._factory
This is the backing field forListTokenSource.getTokenFactory()
andListTokenSource.setTokenFactory(org.antlr.v4.runtime.TokenFactory<?>)
.static final TokenFactory
<CommonToken> CommonTokenFactory.DEFAULT
The defaultCommonTokenFactory
instance.Methods in org.antlr.v4.runtime that return TokenFactoryModifier and TypeMethodDescriptionTokenFactory
<? 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 TokenFactoryModifier and TypeMethodDescriptionvoid
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.