|
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
public abstract class ClassCodeExpressionTransformer extends ClassCodeVisitorSupport
Visitor to transform expressions in a whole class. Transformed Expressions are usually not visited.
Method Summary | |
---|---|
Expression
|
transform(Expression exp)
|
void
|
visitAnnotations(AnnotatedNode node)
|
void
|
visitAssertStatement(AssertStatement as)
|
void
|
visitCaseStatement(CaseStatement statement)
|
protected void
|
visitConstructorOrMethod(MethodNode node, boolean isConstructor)
|
void
|
visitDoWhileLoop(DoWhileStatement loop)
|
void
|
visitExpressionStatement(ExpressionStatement es)
|
void
|
visitField(FieldNode node)
|
void
|
visitForLoop(ForStatement forLoop)
|
void
|
visitIfElse(IfStatement ifElse)
|
void
|
visitProperty(PropertyNode node)
|
void
|
visitReturnStatement(ReturnStatement statement)
|
void
|
visitSwitch(SwitchStatement statement)
|
void
|
visitSynchronizedStatement(SynchronizedStatement sync)
|
void
|
visitThrowStatement(ThrowStatement ts)
|
void
|
visitWhileLoop(WhileStatement loop)
|
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() |
Method Detail |
---|
public Expression transform(Expression exp)
public void visitAnnotations(AnnotatedNode node)
public void visitAssertStatement(AssertStatement as)
public void visitCaseStatement(CaseStatement statement)
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
public void visitDoWhileLoop(DoWhileStatement loop)
public void visitExpressionStatement(ExpressionStatement es)
public void visitField(FieldNode node)
public void visitForLoop(ForStatement forLoop)
public void visitIfElse(IfStatement ifElse)
public void visitProperty(PropertyNode node)
public void visitReturnStatement(ReturnStatement statement)
public void visitSwitch(SwitchStatement statement)
public void visitSynchronizedStatement(SynchronizedStatement sync)
public void visitThrowStatement(ThrowStatement ts)
public void visitWhileLoop(WhileStatement loop)
Groovy Documentation