Class VariableExpressionTransformer
java.lang.Object
org.codehaus.groovy.transform.tailrec.VariableExpressionTransformer
- All Implemented Interfaces:
ExpressionTransformer
An expression transformer used in the process of replacing the access to variables
-
Constructor Summary
ConstructorDescriptionVariableExpressionTransformer
(Closure<Boolean> when, Closure<VariableExpression> replaceWith) -
Method Summary
Modifier and TypeMethodDescriptiongetWhen()
void
setReplaceWith
(Closure<VariableExpression> replaceWith) void
transform
(Expression expr) Transforms the given expression into another expression
-
Constructor Details
-
VariableExpressionTransformer
public VariableExpressionTransformer(Closure<Boolean> when, Closure<VariableExpression> replaceWith)
-
-
Method Details
-
transform
Description copied from interface:ExpressionTransformer
Transforms the given expression into another expression- Specified by:
transform
in interfaceExpressionTransformer
-
getWhen
-
setWhen
-
getReplaceWith
-
setReplaceWith
-