Interface TokenWriterProxy.Listener

All Known Implementing Classes:
Enclosing class:

public static interface TokenWriterProxy.Listener
Listens for each call of TokenWriter
  • Method Details

    • onTokenWriterWrite

      void onTokenWriterWrite(TokenType tokenType, String token, CtComment comment, Runnable printAction)
      Called once for each call of TokenWriter method
      tokenType - identifies the called method
      token - the sent token. May be null
      comment - the sent comment. Is null for tokenType != TokenType.COMMENT
      printAction - a Runnable, which can be used to run wrapped TokenWriter method