public class MacroTransformation
extends MethodCallTransformation
implements CompilationUnitAware
| Modifiers | Name | Description |
|---|---|---|
protected CompilationUnit |
unit |
Compilation unit that owns the current transformation. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
protected GroovyCodeVisitor |
getTransformer(ASTNode[] nodes, SourceUnit sourceUnit)Creates the visitor that rewrites macro method calls. |
|
public void |
setCompilationUnit(CompilationUnit unit)Stores the current compilation unit for later macro expansion. |
| Methods inherited from class | Name |
|---|---|
class MethodCallTransformation |
getTransformer, visit |
Compilation unit that owns the current transformation.
Creates the visitor that rewrites macro method calls.
nodes - the visited nodessourceUnit - the current source unitStores the current compilation unit for later macro expansion.
unit - the current compilation unit