Class MacroGroovyMethods


  • public class MacroGroovyMethods
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DOLLAR_VALUE  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.codehaus.groovy.ast.expr.ListExpression buildSubstitutions​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ASTNode expr)  
      protected static org.codehaus.groovy.ast.expr.ClosureExpression getClosureArgument​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.expr.MethodCallExpression call)  
      protected static org.codehaus.groovy.ast.expr.TupleExpression getMacroArguments​(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.expr.MethodCallExpression call)  
      static <T> T macro​(java.lang.Object self, boolean asIs, groovy.lang.Closure cl)  
      static <T> T macro​(java.lang.Object self, groovy.lang.Closure cl)  
      static <T> T macro​(java.lang.Object self, org.codehaus.groovy.control.CompilePhase compilePhase, boolean asIs, groovy.lang.Closure cl)  
      static <T> T macro​(java.lang.Object self, org.codehaus.groovy.control.CompilePhase compilePhase, groovy.lang.Closure cl)  
      static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)  
      static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext, org.codehaus.groovy.ast.expr.ConstantExpression asIsConstantExpression, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)  
      static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext, org.codehaus.groovy.ast.expr.PropertyExpression phaseExpression, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)  
      static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext, org.codehaus.groovy.ast.expr.PropertyExpression phaseExpression, org.codehaus.groovy.ast.expr.ConstantExpression asIsConstantExpression, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MacroGroovyMethods

        public MacroGroovyMethods()
    • Method Detail

      • macro

        public static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext,
                                                                    org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)
      • macro

        public static <T> T macro​(java.lang.Object self,
                                  boolean asIs,
                                  @DelegatesTo(MacroValuePlaceholder.class)
                                  groovy.lang.Closure cl)
      • macro

        public static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext,
                                                                    org.codehaus.groovy.ast.expr.ConstantExpression asIsConstantExpression,
                                                                    org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)
      • macro

        public static <T> T macro​(java.lang.Object self,
                                  org.codehaus.groovy.control.CompilePhase compilePhase,
                                  @DelegatesTo(MacroValuePlaceholder.class)
                                  groovy.lang.Closure cl)
      • macro

        public static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext,
                                                                    org.codehaus.groovy.ast.expr.PropertyExpression phaseExpression,
                                                                    org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)
      • macro

        public static <T> T macro​(java.lang.Object self,
                                  org.codehaus.groovy.control.CompilePhase compilePhase,
                                  boolean asIs,
                                  @DelegatesTo(MacroValuePlaceholder.class)
                                  groovy.lang.Closure cl)
      • macro

        public static org.codehaus.groovy.ast.expr.Expression macro​(MacroContext macroContext,
                                                                    org.codehaus.groovy.ast.expr.PropertyExpression phaseExpression,
                                                                    org.codehaus.groovy.ast.expr.ConstantExpression asIsConstantExpression,
                                                                    org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)
      • buildSubstitutions

        public static org.codehaus.groovy.ast.expr.ListExpression buildSubstitutions​(org.codehaus.groovy.control.SourceUnit source,
                                                                                     org.codehaus.groovy.ast.ASTNode expr)
      • getMacroArguments

        protected static org.codehaus.groovy.ast.expr.TupleExpression getMacroArguments​(org.codehaus.groovy.control.SourceUnit source,
                                                                                        org.codehaus.groovy.ast.expr.MethodCallExpression call)
      • getClosureArgument

        protected static org.codehaus.groovy.ast.expr.ClosureExpression getClosureArgument​(org.codehaus.groovy.control.SourceUnit source,
                                                                                           org.codehaus.groovy.ast.expr.MethodCallExpression call)