Class MacroTransformation

  • All Implemented Interfaces:
    groovy.transform.CompilationUnitAware, org.codehaus.groovy.transform.ASTTransformation

    public class MacroTransformation
    extends org.codehaus.groovy.ast.MethodCallTransformation
    implements groovy.transform.CompilationUnitAware
    Since:
    2.5.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.codehaus.groovy.control.CompilationUnit unit  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.codehaus.groovy.ast.GroovyCodeVisitor getTransformer​(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit sourceUnit)  
      void setCompilationUnit​(org.codehaus.groovy.control.CompilationUnit unit)  
      • 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
    • Field Detail

      • unit

        protected org.codehaus.groovy.control.CompilationUnit unit
    • Constructor Detail

      • MacroTransformation

        public MacroTransformation()
    • Method Detail

      • setCompilationUnit

        public void setCompilationUnit​(org.codehaus.groovy.control.CompilationUnit unit)
        Specified by:
        setCompilationUnit in interface groovy.transform.CompilationUnitAware
      • getTransformer

        protected org.codehaus.groovy.ast.GroovyCodeVisitor getTransformer​(org.codehaus.groovy.ast.ASTNode[] nodes,
                                                                           org.codehaus.groovy.control.SourceUnit sourceUnit)
        Specified by:
        getTransformer in class org.codehaus.groovy.ast.MethodCallTransformation