org.codehaus.groovy.ast.builder
[Java] Class AstBuilderTransformation
java.lang.Object
org.codehaus.groovy.ast.builder.AstBuilderTransformation
- All Implemented Interfaces:
- ASTTransformation
@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class AstBuilderTransformation
extends java.lang.Object
Transformation to capture ASTBuilder from code statements.
The AstBuilder "from code" approach is used with a single Closure
parameter. This transformation converts the ClosureExpression back
into source code and rewrites the AST so that the "from string"
builder is invoked on the source. In order for this to work, the
closure source must be given a goto label. It is the "from string"
approach's responsibility to remove the BlockStatement created
by the label.
- Authors:
- Hamlet D'Arcy
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() |
visit
public void visit(ASTNode[] nodes, SourceUnit sourceUnit)
-
Groovy Documentation