示例#1
0
        /**
         * Walk the subtree rooted under node *top (only the children, not *top itself)
         * post-order, calling the function void visit(SafraTree& tree, SafraTreeNode *node)
         * in the SafraTreeVisitor on each node.
         */
        public void walkChildrenPostOrder(SafraTreeVisitor visitor, SafraTreeNode top)
        {
            SafraTreeWalker walker = new SafraTreeWalker(visitor);

            // = don't visit top
            walker.walkSubTreePostOrder(this, top, false);
        }
示例#2
0
        /**
         * Walk the subtree rooted under node *top post-order,
         * calling the function void visit(SafraTree& tree, SafraTreeNode *node)
         * in the SafraTreeVisitor on each node.
         */

        public void walkSubTreePostOrder(SafraTreeVisitor visitor, SafraTreeNode top)
        {
            SafraTreeWalker walker = new SafraTreeWalker(visitor);

            walker.walkSubTreePostOrder(this, top);
        }
示例#3
0
        /**
         * Walk the tree post-order, calling the function
         * void visit(SafraTree& tree, SafraTreeNode *node)
         * in the SafraTreeVisitor on each node.
         */

        public void walkTreePostOrder(SafraTreeVisitor visitor)
        {
            SafraTreeWalker walker = new SafraTreeWalker(visitor);

            walker.walkTreePostOrder(this);
        }
示例#4
0
 /**
  * Walk the tree post-order, calling the function
  * void visit(SafraTree& tree, SafraTreeNode *node)
  * in the SafraTreeVisitor on each node.
  */
 public void walkTreePostOrder(SafraTreeVisitor visitor)
 {
     SafraTreeWalker walker = new SafraTreeWalker(visitor);
     walker.walkTreePostOrder(this);
 }
示例#5
0
 /**
  * Walk the subtree rooted under node *top post-order,
  * calling the function void visit(SafraTree& tree, SafraTreeNode *node)
  * in the SafraTreeVisitor on each node.
  */
 public void walkSubTreePostOrder(SafraTreeVisitor visitor, SafraTreeNode top)
 {
     SafraTreeWalker walker = new SafraTreeWalker(visitor);
     walker.walkSubTreePostOrder(this, top);
 }
示例#6
0
 /**
  * Walk the subtree rooted under node *top (only the children, not *top itself)
  * post-order, calling the function void visit(SafraTree& tree, SafraTreeNode *node)
  * in the SafraTreeVisitor on each node.
  */
 public void walkChildrenPostOrder(SafraTreeVisitor visitor, SafraTreeNode top)
 {
     SafraTreeWalker walker = new SafraTreeWalker(visitor);
     // = don't visit top
     walker.walkSubTreePostOrder(this, top, false);
 }