Class MacroGroovyMethods
java.lang.Object
org.codehaus.groovy.macro.methods.MacroGroovyMethods
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ListExpression
buildSubstitutions
(SourceUnit source, ASTNode expr) protected static ClosureExpression
getClosureArgument
(SourceUnit source, MethodCallExpression call) protected static TupleExpression
getMacroArguments
(SourceUnit source, MethodCallExpression call) static <T> T
static <T> T
static <T> T
macro
(Object self, CompilePhase compilePhase, boolean asIs, Closure cl) static <T> T
macro
(Object self, CompilePhase compilePhase, Closure cl) static Expression
macro
(MacroContext macroContext, ClosureExpression closureExpression) static Expression
macro
(MacroContext macroContext, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression) static Expression
macro
(MacroContext macroContext, PropertyExpression phaseExpression, ClosureExpression closureExpression) static Expression
macro
(MacroContext macroContext, PropertyExpression phaseExpression, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression)
-
Field Details
-
DOLLAR_VALUE
- See Also:
-
-
Constructor Details
-
MacroGroovyMethods
public MacroGroovyMethods()
-
-
Method Details
-
macro
-
macro
-
macro
public static <T> T macro(Object self, boolean asIs, @DelegatesTo(MacroValuePlaceholder.class) Closure cl) -
macro
public static Expression macro(MacroContext macroContext, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression) -
macro
public static <T> T macro(Object self, CompilePhase compilePhase, @DelegatesTo(MacroValuePlaceholder.class) Closure cl) -
macro
public static Expression macro(MacroContext macroContext, PropertyExpression phaseExpression, ClosureExpression closureExpression) -
macro
public static <T> T macro(Object self, CompilePhase compilePhase, boolean asIs, @DelegatesTo(MacroValuePlaceholder.class) Closure cl) -
macro
public static Expression macro(MacroContext macroContext, PropertyExpression phaseExpression, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression) -
buildSubstitutions
-
getMacroArguments
-
getClosureArgument
-