Interface PrinterEvent

All Known Implementing Classes:
ElementPrinterEvent, TokenPrinterEvent

public interface PrinterEvent
Represents an action of PrettyPrinter
  • Method Details

    • getRole

      CtRole getRole()
      role of printed source code of element in scope of its parent
    • printSourceFragment

      void printSourceFragment(SourceFragment fragment, ModificationStatus isModified)
      We have a source fragment of to be printed element. Print unmodified parts of this source `fragment`
      fragment -
      isModified - true if at least some part of `SourceFragment` is modified.
    • getElement

      @Nullable SourcePositionHolder getElement()
      printed element or null if printing a primitive token