@Incubating public enum MacroBuilder extends java.lang.Enum<MacroBuilder>
macro {}
method.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static ASTNode |
getMacroValue(BlockStatement closureBlock,
boolean asIs) |
<T> T |
macro(boolean asIs,
java.lang.String source,
java.util.List<Closure<Expression>> context,
java.lang.Class<T> resultClass) |
<T> T |
macro(CompilePhase compilePhase,
boolean asIs,
java.lang.String source,
java.util.List<Closure<Expression>> context,
java.lang.Class<T> resultClass) |
<T> T |
macro(CompilePhase compilePhase,
java.lang.String source,
java.util.List<Closure<Expression>> context,
java.lang.Class<T> resultClass) |
<T> T |
macro(java.lang.String source,
java.util.List<Closure<Expression>> context,
java.lang.Class<T> resultClass) |
static MacroBuilder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MacroBuilder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MacroBuilder INSTANCE
public static MacroBuilder[] values()
for (MacroBuilder c : MacroBuilder.values()) System.out.println(c);
public static MacroBuilder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic <T> T macro(java.lang.String source, java.util.List<Closure<Expression>> context, java.lang.Class<T> resultClass)
public <T> T macro(boolean asIs, java.lang.String source, java.util.List<Closure<Expression>> context, java.lang.Class<T> resultClass)
public <T> T macro(CompilePhase compilePhase, java.lang.String source, java.util.List<Closure<Expression>> context, java.lang.Class<T> resultClass)
public <T> T macro(CompilePhase compilePhase, boolean asIs, java.lang.String source, java.util.List<Closure<Expression>> context, java.lang.Class<T> resultClass)
public static ASTNode getMacroValue(BlockStatement closureBlock, boolean asIs)