Package jamopp.printer
Class JaMoPPPrinter
- java.lang.Object
-
- jamopp.printer.JaMoPPPrinter
-
public final class JaMoPPPrinter extends Object
This class provides methods to print JaMoPP model instances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
print(Commentable element, OutputStream output)
Prints an arbitrary Java model element into an OutputStream.static void
print(JavaRoot root, OutputStream output)
Prints a model instance into an OutputStream.static void
print(JavaRoot root, Path file)
Prints a model instance into a file.
-
-
-
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.
-
-