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
MacroGroovyMethods.MacroValuePlaceholder
-
Field Summary
Fields Modifier and Type Field Description static String
DOLLAR_VALUE
-
Constructor Summary
Constructors Constructor Description MacroGroovyMethods()
-
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(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)
-
-
-
Field Detail
-
DOLLAR_VALUE
public static final String DOLLAR_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
-