Class NodePrinter


  • public class NodePrinter
    extends java.lang.Object
    Node pretty printer for debugging purposes.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodePrinter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void dump​(java.io.PrintWriter writer, Node node)  
      private static void dump​(java.io.PrintWriter writer, Node node, java.util.Stack<Node> predecessors)  
      private static boolean isLastSibling​(Node node, Node parent)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NodePrinter

        public NodePrinter()
    • Method Detail

      • isLastSibling

        private static boolean isLastSibling​(Node node,
                                             Node parent)
      • dump

        private static void dump​(java.io.PrintWriter writer,
                                 Node node,
                                 java.util.Stack<Node> predecessors)
      • dump

        public static void dump​(java.io.PrintWriter writer,
                                Node node)