Class PrettyPrintTransformer


  • public class PrettyPrintTransformer
    extends Object
    • Constructor Detail

      • PrettyPrintTransformer

        public PrettyPrintTransformer()
    • Method Detail

      • setIndentAmount

        public void setIndentAmount​(int indentAmount)
        Configures the amount of spaces to add
        Parameters:
        indentAmount - int
      • transform

        public Node transform​(Node nodeToTransform)
        Indents the provided nodeToTransform, by keeping the original indents if present
        Parameters:
        nodeToTransform - Node to be indented
        Returns:
        Node with indents