public abstract class ClassCodeExpressionTransformer extends ClassCodeVisitorSupport implements ExpressionTransformer
Transforms expressions in a whole class. Transformed expressions are usually not visited.
Type Params | Return Type | Name and description |
---|---|---|
|
protected static void |
setSourcePosition(Expression toSet, Expression origNode) Set the source position of toSet including its property expression if it has one. |
|
Expression |
transform(Expression expr) |
|
protected void |
visitAnnotation(AnnotationNode node) |
|
void |
visitAssertStatement(AssertStatement stmt) |
|
void |
visitCaseStatement(CaseStatement stmt) |
|
protected void |
visitConstructorOrMethod(MethodNode node, boolean isConstructor) |
|
void |
visitDoWhileLoop(DoWhileStatement stmt) |
|
void |
visitExpressionStatement(ExpressionStatement stmt) |
|
void |
visitField(FieldNode node) |
|
void |
visitForLoop(ForStatement stmt) |
|
void |
visitIfElse(IfStatement stmt) |
|
void |
visitProperty(PropertyNode node) |
|
void |
visitReturnStatement(ReturnStatement stmt) |
|
void |
visitSwitch(SwitchStatement stmt) |
|
void |
visitSynchronizedStatement(SynchronizedStatement stmt) |
|
void |
visitThrowStatement(ThrowStatement stmt) |
|
void |
visitWhileLoop(WhileStatement stmt) |
Set the source position of toSet including its property expression if it has one.
toSet
- resulting nodeorigNode
- original node