Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.0
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.groovy.antlr.treewalker
Class PreOrderTraversal

    java.lang.Object
      org.codehaus.groovy.antlr.treewalker.TraversalHelper
          org.codehaus.groovy.antlr.treewalker.PreOrderTraversal

    class PreOrderTraversal
    extends TraversalHelper

A simple preorder traversal over the supplied antlr AST.

author:
  Jeremy Rayner

version:
  $Revision: 6778 $

Field Summary

Fields inherited from class TraversalHelper
unvisitedNodes

Constructor Summary
`PreOrderTraversal(Visitor visitor)` A simple preorder traversal over the supplied antlr AST.

Method Summary
`void` | `accept(GroovySourceAST currentNode)`

Methods inherited from class TraversalHelper
accept, acceptChildren, acceptSiblings, accept_FirstChild_v_RestOfTheChildren, accept_FirstChild_v_RestOfTheChildren_v, accept_FirstChild_v_RestOfTheChildren_v_LastChild, accept_FirstChild_v_SecondChild, accept_FirstChild_v_SecondChild_v, accept_FirstChild_v_SecondChild_v_ThirdChild_v, accept_FirstChild_v_SecondChildsChildren_v, accept_FirstSecondAndThirdChild_v_v_ForthChild, accept_SecondChild_v_ThirdChild_v, accept_v_AllChildren_v, accept_v_AllChildren_v_Siblings, accept_v_FirstChild_2ndv_SecondChild_v___LastChild_v, accept_v_FirstChild_SecondChild_v_ThirdChild_v, accept_v_FirstChild_v, accept_v_FirstChild_v_RestOfTheChildren, accept_v_FirstChild_v_RestOfTheChildren_v, accept_v_FirstChild_v_SecondChild_v___LastChild_v, accept_v_FirstChildsFirstChild_v_Child2_Child3_v_Child4_v___v_LastChild, accept_v_FirstChildsFirstChild_v_RestOfTheChildren, accept_v_Siblings_v, closingVisit, openingVisit, pop, process, push, secondVisit, setUp, skip, subsequentVisit, tearDown, visitNode

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### PreOrderTraversal

    public PreOrderTraversal(Visitor visitor)

  A simple preorder traversal over the supplied antlr AST.
  param:
    visitor the Visitor to call for each node visited

Method Detail

### accept

    public void accept(GroovySourceAST currentNode)

Copyright © 2003-2009 The Codehaus. All rights reserved.