Package org.codehaus.groovy.macro.transform

# Class MacroClassTransformation

java.lang.Object
org.codehaus.groovy.ast.MethodCallTransformation
org.codehaus.groovy.macro.transform.MacroClassTransformation

All Implemented Interfaces:
  `ASTTransformation`

public class MacroClassTransformation extends MethodCallTransformation
Transforms `MacroClass` calls into its ClassNode

Since:
  2.5.0

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MacroClassTransformation()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected GroovyCodeVisitor`
  `getTransformer(ASTNode[] nodes, SourceUnit sourceUnit)`
  Creates the visitor that rewrites `MacroClass` constructor calls.

  ### Methods inherited from class org.codehaus.groovy.ast.MethodCallTransformation

  `visit`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MacroClassTransformation

    public MacroClassTransformation()

- ## Method Details

  - ### getTransformer

    protected GroovyCodeVisitor getTransformer(ASTNode[] nodes, SourceUnit sourceUnit)
    Creates the visitor that rewrites `MacroClass` constructor calls.
    Specified by:
      `getTransformer` in class `MethodCallTransformation`
    Parameters:
      `nodes` - the visited nodes
      `sourceUnit` - the current source unit
    Returns:
      the macro-class-transforming visitor