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 classMacroGroovyMethods.MacroValuePlaceholder -
Field Summary
Fields Modifier and Type Field Description static StringDOLLAR_VALUE -
Constructor Summary
Constructors Constructor Description MacroGroovyMethods() -
Method Summary
Modifier and Type Method Description static org.codehaus.groovy.ast.expr.ListExpressionbuildSubstitutions(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ASTNode expr)protected static org.codehaus.groovy.ast.expr.ClosureExpressiongetClosureArgument(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.expr.MethodCallExpression call)protected static org.codehaus.groovy.ast.expr.TupleExpressiongetMacroArguments(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.expr.MethodCallExpression call)static <T> Tmacro(Object self, boolean asIs, groovy.lang.Closure cl)static <T> Tmacro(Object self, groovy.lang.Closure cl)static <T> Tmacro(Object self, org.codehaus.groovy.control.CompilePhase compilePhase, boolean asIs, groovy.lang.Closure cl)static <T> Tmacro(Object self, org.codehaus.groovy.control.CompilePhase compilePhase, groovy.lang.Closure cl)static org.codehaus.groovy.ast.expr.Expressionmacro(MacroContext macroContext, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)static org.codehaus.groovy.ast.expr.Expressionmacro(MacroContext macroContext, org.codehaus.groovy.ast.expr.ConstantExpression asIsConstantExpression, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)static org.codehaus.groovy.ast.expr.Expressionmacro(MacroContext macroContext, org.codehaus.groovy.ast.expr.PropertyExpression phaseExpression, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)static org.codehaus.groovy.ast.expr.Expressionmacro(MacroContext macroContext, org.codehaus.groovy.ast.expr.PropertyExpression phaseExpression, org.codehaus.groovy.ast.expr.ConstantExpression asIsConstantExpression, org.codehaus.groovy.ast.expr.ClosureExpression closureExpression)
-
Field Details
-
DOLLAR_VALUE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MacroGroovyMethods
public MacroGroovyMethods()
-
-
Method Details
-
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)
-