类 NodeTraverser


  • public class NodeTraverser
    extends Object
    A visitor for traversing an AST tree.
    作者:
    Steve Ebersole, Philip R. "Pib" Burns., Strong Liu
    • 方法详细资料

      • traverseDepthFirst

        public void traverseDepthFirst​(antlr.collections.AST ast)
        Traverse the AST tree depth first.
        参数:
        ast - Root node of subtree to traverse.

        Note that the AST passed in is not visited itself. Visitation starts with its children.