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 TypeMethodDescriptionvoidonTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction) Called once for each call ofTokenWritermethod
-
Method Details
-
onTokenWriterWrite
Called once for each call ofTokenWritermethod- Parameters:
tokenType- identifies the called methodtoken- the sent token. May be nullcomment- the sent comment. Is null for tokenType !=TokenType.COMMENTprintAction- aRunnable, which can be used to run wrappedTokenWritermethod
-