Class MacroGroovyMethods

java.lang.Object
org.codehaus.groovy.macro.methods.MacroGroovyMethods

public class MacroGroovyMethods extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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(Object self, boolean asIs, groovy.lang.Closure cl)
     
    static <T> T
    macro(Object self, groovy.lang.Closure cl)
     
    static <T> T
    macro(Object self, org.codehaus.groovy.control.CompilePhase compilePhase, boolean asIs, groovy.lang.Closure cl)
     
    static <T> T
    macro(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
  • Field Details

  • Constructor Details

    • MacroGroovyMethods

      public MacroGroovyMethods()
  • Method Details

    • macro

      public static <T> T macro(Object self, @DelegatesTo(MacroValuePlaceholder.class) groovy.lang.Closure cl)
    • 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(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(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(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)