Top Description Fields Constructors Methods
org.codehaus.groovy.antlr.treewalker

public abstract Class TraversalHelper

extends Object
implements AntlrASTProcessor
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.antlr.AntlrASTProcessor
Known Direct Subclasses
org.codehaus.groovy.antlr.treewalker.FlatNodeListTraversal, org.codehaus.groovy.antlr.treewalker.PreOrderTraversal, org.codehaus.groovy.antlr.treewalker.SourceCodeTraversal
Annotations
@Deprecated
Imports
antlr.collections.AST, org.codehaus.groovy.antlr.AntlrASTProcessor, .GroovySourceAST, org.codehaus.groovy.antlr.parser.GroovyTokenTypes, java.util.ArrayList, .List

Deprecated

Helper Class for Antlr AST traversal and visitation.

Field Summary

Modifier and TypeField and Description
protected List<GroovySourceAST>
private final Visitor
v

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract void
accept(GroovySourceAST currentNode)

protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected GroovySourceAST
pop()

public AST
process(AST
the AST node to process.
t
)

Implements org.codehaus.groovy.antlr.AntlrASTProcessor.process.

performs some processing on the supplied AST node.
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

unvisitedNodesback to summary
protected List<GroovySourceAST> unvisitedNodes
vback to summary
private final Visitor v

Constructor Detail

TraversalHelperback to summary
public TraversalHelper(Visitor visitor)

Method Detail

acceptback to summary
protected abstract void accept(GroovySourceAST currentNode)
accept_FirstChild_v_RestOfTheChildrenback to summary
protected void accept_FirstChild_v_RestOfTheChildren(GroovySourceAST t)
accept_FirstChild_v_RestOfTheChildren_vback to summary
protected void accept_FirstChild_v_RestOfTheChildren_v(GroovySourceAST t)
accept_FirstChild_v_RestOfTheChildren_v_LastChildback to summary
protected void accept_FirstChild_v_RestOfTheChildren_v_LastChild(GroovySourceAST t)
accept_FirstChild_v_SecondChildback to summary
protected void accept_FirstChild_v_SecondChild(GroovySourceAST t)
accept_FirstChild_v_SecondChild_vback to summary
protected void accept_FirstChild_v_SecondChild_v(GroovySourceAST t)
accept_FirstChild_v_SecondChild_v_ThirdChild_vback to summary
protected void accept_FirstChild_v_SecondChild_v_ThirdChild_v(GroovySourceAST t)
accept_FirstChild_v_SecondChildsChildren_vback to summary
protected void accept_FirstChild_v_SecondChildsChildren_v(GroovySourceAST t)
accept_FirstSecondAndThirdChild_v_v_ForthChildback to summary
protected void accept_FirstSecondAndThirdChild_v_v_ForthChild(GroovySourceAST t)
accept_SecondChild_v_ThirdChild_vback to summary
protected void accept_SecondChild_v_ThirdChild_v(GroovySourceAST t)
accept_v_AllChildren_vback to summary
protected void accept_v_AllChildren_v(GroovySourceAST t)
accept_v_AllChildren_v_Siblingsback to summary
protected void accept_v_AllChildren_v_Siblings(GroovySourceAST t)
accept_v_FirstChild_2ndv_SecondChild_v___LastChild_vback to summary
protected void accept_v_FirstChild_2ndv_SecondChild_v___LastChild_v(GroovySourceAST t)
accept_v_FirstChild_SecondChild_v_ThirdChild_vback to summary
protected void accept_v_FirstChild_SecondChild_v_ThirdChild_v(GroovySourceAST t)
accept_v_FirstChild_vback to summary
protected void accept_v_FirstChild_v(GroovySourceAST t)
accept_v_FirstChild_v_RestOfTheChildrenback to summary
protected void accept_v_FirstChild_v_RestOfTheChildren(GroovySourceAST t)
accept_v_FirstChild_v_RestOfTheChildren_vback to summary
protected void accept_v_FirstChild_v_RestOfTheChildren_v(GroovySourceAST t)
accept_v_FirstChild_v_SecondChild_v___LastChild_vback to summary
protected void accept_v_FirstChild_v_SecondChild_v___LastChild_v(GroovySourceAST t)
accept_v_FirstChildsFirstChild_v_Child2_Child3_v_Child4_v___v_LastChildback to summary
protected void accept_v_FirstChildsFirstChild_v_Child2_Child3_v_Child4_v___v_LastChild(GroovySourceAST t)
accept_v_FirstChildsFirstChild_v_RestOfTheChildrenback to summary
protected void accept_v_FirstChildsFirstChild_v_RestOfTheChildren(GroovySourceAST t)
accept_v_Siblings_vback to summary
protected void accept_v_Siblings_v(GroovySourceAST t)
acceptChildrenback to summary
protected void acceptChildren(GroovySourceAST t)
acceptSiblingsback to summary
protected void acceptSiblings(GroovySourceAST t)
closingVisitback to summary
protected void closingVisit(GroovySourceAST t)
openingVisitback to summary
protected void openingVisit(GroovySourceAST t)
popback to summary
protected GroovySourceAST pop()
processback to summary
public AST process(AST t)

Implements org.codehaus.groovy.antlr.AntlrASTProcessor.process.

Doc from org.codehaus.groovy.antlr.AntlrASTProcessor.process.

performs some processing on the supplied AST node.

Parameters
t:AST

the AST node to process.

Returns:AST

possibly returns the AST modified or null, depends on the implementation.

pushback to summary
protected void push(GroovySourceAST ast)
secondVisitback to summary
protected void secondVisit(GroovySourceAST t)
setUpback to summary
protected void setUp(GroovySourceAST ast)
skipback to summary
protected void skip(GroovySourceAST expr)
subsequentVisitback to summary
protected void subsequentVisit(GroovySourceAST t)
tearDownback to summary
protected void tearDown(GroovySourceAST ast)
visitNodeback to summary
protected void visitNode(GroovySourceAST ast, int n)