|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.antlr.treewalker.TraversalHelper
org.codehaus.groovy.antlr.treewalker.SourceCodeTraversal
public class SourceCodeTraversal extends TraversalHelper
A treewalker for the antlr generated AST that attempts to visit the AST nodes in the order needed to generate valid groovy source code.
| Field Summary |
|---|
| Fields inherited from class TraversalHelper | |
|---|---|
| unvisitedNodes |
| Constructor Summary | |
SourceCodeTraversal(Visitor visitor)
Constructs a treewalker for the antlr generated AST that attempts to visit the AST nodes in the order needed to generate valid groovy source code. |
|
| Method Summary | |
|---|---|
protected void
|
accept(GroovySourceAST currentNode)
|
void
|
setUp(GroovySourceAST t)
gather, sort and process all unvisited nodes |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Constructor Detail |
|---|
public SourceCodeTraversal(Visitor visitor)
visitor - the visitor implementation to call for each AST node.
| Method Detail |
|---|
protected void accept(GroovySourceAST currentNode)
public void setUp(GroovySourceAST t)
t - the AST to process
Groovy Documentation