[Java] Class PreOrderTraversal
- org.codehaus.groovy.antlr.treewalker.PreOrderTraversal
public class PreOrderTraversal extends TraversalHelper
A simple preorder traversal over the supplied antlr AST.
Fields inherited from class | Fields |
---|---|
class TraversalHelper | unvisitedNodes |
Constructor Summary
Constructor and description |
---|
PreOrderTraversal
(Visitor visitor) A simple preorder traversal over the supplied antlr AST. |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
accept(GroovySourceAST currentNode) |
Inherited Methods Summary
Constructor Detail
public PreOrderTraversal(Visitor visitor)
A simple preorder traversal over the supplied antlr AST.
- Parameters:
-
visitor
- the Visitor to call for each node visited
Method Detail
public void accept(GroovySourceAST currentNode)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/antlr/treewalker/PreOrderTraversal.html