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 TypeClassDescriptionclassThis default implementation ofTokenFactorycreatesCommonTokenobjects.Fields in org.antlr.v4.runtime declared as TokenFactoryModifier and TypeFieldDescriptionprotected TokenFactory<?> Lexer._factoryHow to create token objectsstatic final TokenFactory<CommonToken> CommonTokenFactory.DEFAULTThe defaultCommonTokenFactoryinstance.Methods in org.antlr.v4.runtime that return TokenFactoryModifier and TypeMethodDescriptionTokenFactory<? extends Token> Lexer.getTokenFactory()TokenFactory<?> ListTokenSource.getTokenFactory()Gets theTokenFactorythis token source is currently using for creatingTokenobjects from the input.TokenFactory<?> Parser.getTokenFactory()abstract TokenFactory<?> Recognizer.getTokenFactory()TokenFactory<?> TokenSource.getTokenFactory()Gets theTokenFactorythis token source is currently using for creatingTokenobjects from the input.Methods in org.antlr.v4.runtime with parameters of type TokenFactoryModifier and TypeMethodDescriptionvoidLexer.setTokenFactory(TokenFactory<?> factory) voidListTokenSource.setTokenFactory(TokenFactory<?> factory) Set theTokenFactorythis token source should use for creatingTokenobjects from the input.voidParser.setTokenFactory(TokenFactory<?> factory) Tell our token source and error strategy about a new way to create tokens.abstract voidRecognizer.setTokenFactory(TokenFactory<?> input) voidTokenSource.setTokenFactory(TokenFactory<?> factory) Set theTokenFactorythis token source should use for creatingTokenobjects from the input.