Class VariableAccessReplacer
java.lang.Object
org.codehaus.groovy.transform.tailrec.VariableAccessReplacer
Replace all access to variables and args by new variables.
The variable names to replace as well as their replacement name and type have to be configured
in nameAndTypeMapping before calling replaceIn().
The VariableReplacedListener can be set if clients want to react to variable replacement.
-
Constructor Summary
ConstructorDescriptionVariableAccessReplacer
(Map<String, Map> nameAndTypeMapping) VariableAccessReplacer
(Map<String, Map> nameAndTypeMapping, VariableReplacedListener listener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
setListener
(VariableReplacedListener listener) void
setNameAndTypeMapping
(Map<String, Map> nameAndTypeMapping)
-
Constructor Details
-
VariableAccessReplacer
-
VariableAccessReplacer
public VariableAccessReplacer(Map<String, Map> nameAndTypeMapping, VariableReplacedListener listener)
-
-
Method Details
-
replaceIn
-
setNameAndTypeMapping
-
getListener
-
setListener
-