Interface PrinterEvent

    • Method Detail

      • getRole

        CtRole getRole()
        Returns:
        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`
        Parameters:
        fragment -
        isModified - true if at least some part of `SourceFragment` is modified.
      • getElement

        SourcePositionHolder getElement()
        Returns:
        printed element or null if printing a primitive token