Search in sources :

Example 1 with PrinterConfiguration

use of com.github.javaparser.printer.configuration.PrinterConfiguration in project drools by kiegroup.

the class PrintUtil method printNode.

public static String printNode(Node node) {
    PrinterConfiguration prettyPrinterConfiguration = new DefaultPrinterConfiguration();
    ConstraintPrintVisitor constraintPrintVisitor = new ConstraintPrintVisitor(prettyPrinterConfiguration);
    node.accept(constraintPrintVisitor, null);
    return constraintPrintVisitor.toString();
}
Also used : DefaultPrinterConfiguration(com.github.javaparser.printer.configuration.DefaultPrinterConfiguration) PrinterConfiguration(com.github.javaparser.printer.configuration.PrinterConfiguration) DefaultPrinterConfiguration(com.github.javaparser.printer.configuration.DefaultPrinterConfiguration)

Aggregations

DefaultPrinterConfiguration (com.github.javaparser.printer.configuration.DefaultPrinterConfiguration)1 PrinterConfiguration (com.github.javaparser.printer.configuration.PrinterConfiguration)1