Class ExpansionTreeWalker


  • final class ExpansionTreeWalker
    extends java.lang.Object
    A set of routines that walk down the Expansion tree in various ways.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExpansionTreeWalker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void postOrderWalk​(Expansion node, TreeWalkerOp opObj)
      Visits the nodes of the tree rooted at "node" in post-order.
      (package private) static void preOrderWalk​(Expansion node, TreeWalkerOp opObj)
      Visits the nodes of the tree rooted at "node" in pre-order.
      • Methods inherited from class java.lang.Object

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

      • ExpansionTreeWalker

        private ExpansionTreeWalker()
    • Method Detail

      • preOrderWalk

        static void preOrderWalk​(Expansion node,
                                 TreeWalkerOp opObj)
        Visits the nodes of the tree rooted at "node" in pre-order. i.e., it executes opObj.action first and then visits the children.
      • postOrderWalk

        static void postOrderWalk​(Expansion node,
                                  TreeWalkerOp opObj)
        Visits the nodes of the tree rooted at "node" in post-order. i.e., it visits the children first and then executes opObj.action.