Uses of Enum
spoon.support.sniper.internal.TokenType
Packages that use TokenType
Package
Description
This package provides support for the sniper mode: only the transformed part of classes is rewritten to disk.
-
Uses of TokenType in spoon.support.sniper
Methods in spoon.support.sniper with parameters of type TokenTypeModifier and TypeMethodDescriptionvoid
SniperJavaPrettyPrinter.onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)
Called for each printed token -
Uses of TokenType in spoon.support.sniper.internal
Methods in spoon.support.sniper.internal that return TokenTypeModifier and TypeMethodDescriptionTokenPrinterEvent.getTokenType()
TokenPrinterEvent.getType()
Returns the token typeTokenSourceFragment.getType()
static TokenType
Returns the enum constant of this type with the specified name.static TokenType[]
TokenType.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in spoon.support.sniper.internal with parameters of type TokenTypeModifier and TypeMethodDescriptionvoid
TokenWriterProxy.Listener.onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)
Called once for each call ofTokenWriter
methodConstructors in spoon.support.sniper.internal with parameters of type TokenTypeModifierConstructorDescriptionTokenPrinterEvent(TokenType type, String token, CtComment comment)
TokenSourceFragment(String source, TokenType type)