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