Package org.javacc.parser
Class ExpansionTreeWalker
- java.lang.Object
-
- org.javacc.parser.ExpansionTreeWalker
-
final class ExpansionTreeWalker extends java.lang.ObjectA set of routines that walk down the Expansion tree in various ways.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateExpansionTreeWalker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidpostOrderWalk(Expansion node, TreeWalkerOp opObj)Visits the nodes of the tree rooted at "node" in post-order.(package private) static voidpreOrderWalk(Expansion node, TreeWalkerOp opObj)Visits the nodes of the tree rooted at "node" in pre-order.
-
-
-
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.
-
-