Class TraversalHelper
java.lang.Object
org.codehaus.groovy.antlr.treewalker.TraversalHelper
- All Implemented Interfaces:
AntlrASTProcessor
- Direct Known Subclasses:
FlatNodeListTraversal,PreOrderTraversal,SourceCodeTraversal
Helper Class for Antlr AST traversal and visitation.
- Version:
- $Revision$
- Author:
- Jeremy Rayner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaccept(GroovySourceAST currentNode) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected GroovySourceASTpop()antlr.collections.ASTprocess(antlr.collections.AST t) performs some processing on the supplied AST node.protected voidpush(GroovySourceAST ast) protected voidprotected voidsetUp(GroovySourceAST ast) protected voidskip(GroovySourceAST expr) protected voidprotected voidtearDown(GroovySourceAST ast) protected voidvisitNode(GroovySourceAST ast, int n)
-
Field Details
-
unvisitedNodes
-
-
Constructor Details
-
TraversalHelper
-
-
Method Details
-
setUp
-
tearDown
-
push
-
pop
-
visitNode
-
accept
-
accept_v_FirstChildsFirstChild_v_Child2_Child3_v_Child4_v___v_LastChild
protected void accept_v_FirstChildsFirstChild_v_Child2_Child3_v_Child4_v___v_LastChild(GroovySourceAST t) -
accept_v_FirstChildsFirstChild_v_RestOfTheChildren
-
accept_FirstChild_v_SecondChild
-
accept_FirstChild_v_SecondChild_v
-
accept_SecondChild_v_ThirdChild_v
-
accept_FirstChild_v_SecondChildsChildren_v
-
accept_v_FirstChild_SecondChild_v_ThirdChild_v
-
accept_FirstChild_v_SecondChild_v_ThirdChild_v
-
accept_FirstSecondAndThirdChild_v_v_ForthChild
-
accept_v_FirstChild_2ndv_SecondChild_v___LastChild_v
-
accept_v_FirstChild_v_SecondChild_v___LastChild_v
-
accept_v_FirstChild_v
-
accept_v_Siblings_v
-
accept_v_AllChildren_v_Siblings
-
accept_v_AllChildren_v
-
accept_FirstChild_v_RestOfTheChildren
-
accept_FirstChild_v_RestOfTheChildren_v_LastChild
-
accept_FirstChild_v_RestOfTheChildren_v
-
accept_v_FirstChild_v_RestOfTheChildren
-
accept_v_FirstChild_v_RestOfTheChildren_v
-
acceptSiblings
-
acceptChildren
-
skip
-
openingVisit
-
secondVisit
-
subsequentVisit
-
closingVisit
-
process
public antlr.collections.AST process(antlr.collections.AST t) Description copied from interface:AntlrASTProcessorperforms some processing on the supplied AST node.- Specified by:
processin interfaceAntlrASTProcessor- Parameters:
t- the AST node to process.- Returns:
- possibly returns the AST modified or null, depends on the implementation.
-