Class ExpansionTreeWalker

java.lang.Object
org.javacc.parser.ExpansionTreeWalker

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

    • ExpansionTreeWalker

      private ExpansionTreeWalker()
  • Method Details

    • 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.