Class ExpansionTreeWalker
java.lang.Object
org.javacc.parser.ExpansionTreeWalker
A set of routines that walk down the Expansion tree in various ways.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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.
-
Constructor Details
-
ExpansionTreeWalker
private ExpansionTreeWalker()
-
-
Method Details
-
preOrderWalk
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
Visits the nodes of the tree rooted at "node" in post-order. i.e., it visits the children first and then executes opObj.action.
-