Class JaMoPPPrinter


  • public final class JaMoPPPrinter
    extends Object
    This class provides methods to print JaMoPP model instances.
    • Method Detail

      • print

        public static void print​(JavaRoot root,
                                 OutputStream output)
        Prints a model instance into an OutputStream.
        Parameters:
        root - the model instance to print.
        output - the output for printing.
      • print

        public static void print​(Commentable element,
                                 OutputStream output)
        Prints an arbitrary Java model element into an OutputStream.
        Parameters:
        element - the Java model element.
        output - the output for printing.
      • print

        public static void print​(JavaRoot root,
                                 Path file)
        Prints a model instance into a file.
        Parameters:
        root - the model instance to print.
        file - the file for printing.