|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.ast.ClassCodeVisitorSupport org.codehaus.groovy.ast.ClassCodeExpressionTransformer org.codehaus.groovy.transform.FieldASTTransformation
@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS) public class FieldASTTransformation extends ClassCodeExpressionTransformer
Handles transformation for the
Method Summary | |
---|---|
protected SourceUnit
|
getSourceUnit()
|
Expression
|
transform(Expression expr)
|
void
|
visit(ASTNode[] nodes, SourceUnit source)
|
void
|
visitClosureExpression(ClosureExpression expression)
|
void
|
visitExpressionStatement(ExpressionStatement es)
|
void
|
visitMethod(MethodNode node)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |
Method Detail |
---|
protected SourceUnit getSourceUnit()
if (insideScriptBody) { public Expression transform(Expression expr)
public void visit(ASTNode[] nodes, SourceUnit source)
super.visitMethod(node); public void visitClosureExpression(ClosureExpression expression)
} public void visitExpressionStatement(ExpressionStatement es)
exp.visit(this); public void visitMethod(MethodNode node)
Groovy Documentation