Class MacroClassTransformation
java.lang.Object
org.codehaus.groovy.ast.MethodCallTransformation
org.codehaus.groovy.macro.transform.MacroClassTransformation
- All Implemented Interfaces:
ASTTransformation
Transforms
MacroClass calls into its ClassNode- Since:
- 2.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GroovyCodeVisitorgetTransformer(ASTNode[] nodes, SourceUnit sourceUnit) Creates the visitor that rewritesMacroClassconstructor calls.Methods inherited from class org.codehaus.groovy.ast.MethodCallTransformation
visit
-
Constructor Details
-
MacroClassTransformation
public MacroClassTransformation()
-
-
Method Details
-
getTransformer
Creates the visitor that rewritesMacroClassconstructor calls.- Specified by:
getTransformerin classMethodCallTransformation- Parameters:
nodes- the visited nodessourceUnit- the current source unit- Returns:
- the macro-class-transforming visitor
-