Class MacroGroovyMethods
java.lang.Object
org.codehaus.groovy.macro.methods.MacroGroovyMethods
public class MacroGroovyMethods
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacroGroovyMethods.MacroValuePlaceholder -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOLLAR_VALUE -
Constructor Summary
Constructors Constructor Description MacroGroovyMethods() -
Method Summary
Modifier and Type Method Description static ListExpressionbuildSubstitutions(SourceUnit source, ASTNode expr)protected static ClosureExpressiongetClosureArgument(SourceUnit source, MethodCallExpression call)protected static TupleExpressiongetMacroArguments(SourceUnit source, MethodCallExpression call)static <T> Tmacro(java.lang.Object self, boolean asIs, Closure cl)static <T> Tmacro(java.lang.Object self, Closure cl)static <T> Tmacro(java.lang.Object self, CompilePhase compilePhase, boolean asIs, Closure cl)static <T> Tmacro(java.lang.Object self, CompilePhase compilePhase, Closure cl)static Expressionmacro(MacroContext macroContext, ClosureExpression closureExpression)static Expressionmacro(MacroContext macroContext, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression)static Expressionmacro(MacroContext macroContext, PropertyExpression phaseExpression, ClosureExpression closureExpression)static Expressionmacro(MacroContext macroContext, PropertyExpression phaseExpression, ConstantExpression asIsConstantExpression, ClosureExpression closureExpression)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DOLLAR_VALUE
public static final java.lang.String DOLLAR_VALUE- See Also:
- Constant Field Values
-
-
Constructor Details
-
MacroGroovyMethods
public MacroGroovyMethods()
-
-
Method Details
-
macro
public static <T> T macro(java.lang.Object self, @DelegatesTo(MacroValuePlaceholder.class) Closure cl) -
macro
-
macro
public static <T> T macro(java.lang.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(java.lang.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(java.lang.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
protected static ClosureExpression getClosureArgument(SourceUnit source, MethodCallExpression call)
-