|
|||||||||
| PREV CLASS NEXT CLASS | 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
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 org.codehaus.groovy.antlr.treewalker.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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SourceCodeTraversal(Visitor visitor)
visitor - the visitor implementation to call for each AST node.| Method Detail |
|---|
public void setUp(GroovySourceAST t)
setUp in class TraversalHelpert - the AST to processprotected void accept(GroovySourceAST currentNode)
accept in class TraversalHelper
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||