Package spoon.support.sniper.internal
Interface TokenWriterProxy.Listener
- All Known Implementing Classes:
SniperJavaPrettyPrinter
- Enclosing class:
- TokenWriterProxy
public static interface TokenWriterProxy.Listener
Listens for each call of
TokenWriter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)
Called once for each call ofTokenWriter
method
-
Method Details
-
onTokenWriterWrite
void onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)Called once for each call ofTokenWriter
method- Parameters:
tokenType
- identifies the called methodtoken
- the sent token. May be nullcomment
- the sent comment. Is null for tokenType !=TokenType.COMMENT
printAction
- aRunnable
, which can be used to run wrappedTokenWriter
method
-