public class MacroGroovyMethods extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MacroGroovyMethods.MacroValuePlaceholder |
Modifier and Type | Field and Description |
---|---|
static String |
DOLLAR_VALUE |
Constructor and Description |
---|
MacroGroovyMethods() |
Modifier and Type | Method and Description |
---|---|
static ListExpression |
buildSubstitutions(SourceUnit source,
ASTNode expr) |
protected static ClosureExpression |
getClosureArgument(SourceUnit source,
MethodCallExpression call) |
protected static TupleExpression |
getMacroArguments(SourceUnit source,
MethodCallExpression call) |
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) |
static <T> T |
macro(Object self,
boolean asIs,
Closure cl) |
static <T> T |
macro(Object self,
Closure cl) |
static <T> T |
macro(Object self,
CompilePhase compilePhase,
boolean asIs,
Closure cl) |
static <T> T |
macro(Object self,
CompilePhase compilePhase,
Closure cl) |
public static final String DOLLAR_VALUE
public static <T> T macro(Object self, @DelegatesTo(value=MacroGroovyMethods.MacroValuePlaceholder.class) Closure cl)
public static Expression macro(MacroContext macroContext, ClosureExpression closureExpression)
public static <T> T macro(Object self, boolean asIs, @DelegatesTo(value=MacroGroovyMethods.MacroValuePlaceholder.class) Closure cl)
public static Expression macro(MacroContext macroContext, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression)
public static <T> T macro(Object self, CompilePhase compilePhase, @DelegatesTo(value=MacroGroovyMethods.MacroValuePlaceholder.class) Closure cl)
public static Expression macro(MacroContext macroContext, PropertyExpression phaseExpression, ClosureExpression closureExpression)
public static <T> T macro(Object self, CompilePhase compilePhase, boolean asIs, @DelegatesTo(value=MacroGroovyMethods.MacroValuePlaceholder.class) Closure cl)
public static Expression macro(MacroContext macroContext, PropertyExpression phaseExpression, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression)
public static ListExpression buildSubstitutions(SourceUnit source, ASTNode expr)
protected static TupleExpression getMacroArguments(SourceUnit source, MethodCallExpression call)
protected static ClosureExpression getClosureArgument(SourceUnit source, MethodCallExpression call)