public class GriffonASTUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.codehaus.groovy.syntax.Token |
AND |
static org.codehaus.groovy.syntax.Token |
ASSIGN |
static org.codehaus.groovy.syntax.Token |
CMP |
static org.codehaus.groovy.syntax.Token |
EQ |
static org.codehaus.groovy.syntax.Token |
INSTANCEOF |
static org.codehaus.groovy.syntax.Token |
NE |
static org.codehaus.groovy.ast.expr.ArgumentListExpression |
NO_ARGS |
static org.codehaus.groovy.ast.ClassNode[] |
NO_EXCEPTIONS |
static org.codehaus.groovy.ast.Parameter[] |
NO_PARAMS |
static org.codehaus.groovy.syntax.Token |
OR |
static org.codehaus.groovy.ast.expr.Expression |
SUPER |
static org.codehaus.groovy.ast.expr.Expression |
THIS |
Modifier and Type | Method and Description |
---|---|
static boolean |
addMethod(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.MethodNode methodNode) |
static boolean |
addMethod(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.MethodNode methodNode,
boolean replace) |
static void |
addReadOnlyProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
org.codehaus.groovy.ast.ClassNode propertyClass,
Object value) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
and(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.expr.ArgumentListExpression |
args(org.codehaus.groovy.ast.expr.Expression... expressions) |
static org.codehaus.groovy.ast.expr.ArgumentListExpression |
args(List<org.codehaus.groovy.ast.expr.Expression> expressions) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
assign(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.stmt.Statement |
assigns(org.codehaus.groovy.ast.expr.Expression expression,
org.codehaus.groovy.ast.expr.Expression value) |
static org.codehaus.groovy.ast.stmt.BlockStatement |
block(org.codehaus.groovy.ast.stmt.Statement... stms) |
static org.codehaus.groovy.ast.expr.StaticMethodCallExpression |
call(org.codehaus.groovy.ast.ClassNode receiver,
String methodName,
org.codehaus.groovy.ast.expr.ArgumentListExpression args) |
static org.codehaus.groovy.ast.expr.MethodCallExpression |
call(org.codehaus.groovy.ast.expr.Expression receiver,
String methodName,
org.codehaus.groovy.ast.expr.ArgumentListExpression args) |
static org.codehaus.groovy.ast.expr.ClassExpression |
classx(Class<?> clazz) |
static org.codehaus.groovy.ast.expr.ClassExpression |
classx(org.codehaus.groovy.ast.ClassNode clazz) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
cmp(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.expr.ConstantExpression |
constx(Object val) |
static org.codehaus.groovy.ast.expr.ConstructorCallExpression |
ctor(org.codehaus.groovy.ast.ClassNode type) |
static org.codehaus.groovy.ast.expr.ConstructorCallExpression |
ctor(org.codehaus.groovy.ast.ClassNode type,
org.codehaus.groovy.ast.expr.Expression args) |
static org.codehaus.groovy.ast.stmt.Statement |
decls(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
eq(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.expr.FieldExpression |
field(org.codehaus.groovy.ast.ClassNode owner,
String fieldName) |
static org.codehaus.groovy.ast.expr.FieldExpression |
field(org.codehaus.groovy.ast.FieldNode fieldNode) |
static org.codehaus.groovy.ast.FieldNode |
getField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type) |
static org.codehaus.groovy.ast.FieldNode |
getFieldDeep(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type) |
static String |
getFullName(org.codehaus.groovy.ast.ClassNode classNode)
Gets the full name of a ClassNode.
|
static org.codehaus.groovy.ast.ClassNode |
getFurthestParent(org.codehaus.groovy.ast.ClassNode classNode) |
static boolean |
hasField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type) |
static boolean |
hasOrInheritsField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type) |
static boolean |
hasOrInheritsProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName) |
static boolean |
hasProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName)
Returns whether a classNode has the specified property or not
|
static org.codehaus.groovy.ast.stmt.Statement |
ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond,
org.codehaus.groovy.ast.expr.Expression trueExpr) |
static org.codehaus.groovy.ast.stmt.Statement |
ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond,
org.codehaus.groovy.ast.expr.Expression trueExpr,
org.codehaus.groovy.ast.expr.Expression falseExpr) |
static org.codehaus.groovy.ast.stmt.Statement |
ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond,
org.codehaus.groovy.ast.stmt.Statement trueStmnt) |
static org.codehaus.groovy.ast.stmt.Statement |
ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond,
org.codehaus.groovy.ast.stmt.Statement trueStmnt,
org.codehaus.groovy.ast.stmt.Statement falseStmnt) |
static org.codehaus.groovy.ast.stmt.Statement |
ifs(org.codehaus.groovy.ast.expr.Expression cond,
org.codehaus.groovy.ast.expr.Expression trueExpr) |
static org.codehaus.groovy.ast.stmt.Statement |
ifs(org.codehaus.groovy.ast.expr.Expression cond,
org.codehaus.groovy.ast.expr.Expression trueExpr,
org.codehaus.groovy.ast.expr.Expression falseExpr) |
static boolean |
implementsMethod(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.MethodNode methodNode) |
static boolean |
implementsOrInheritsMethod(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.MethodNode methodNode) |
static boolean |
implementsOrInheritsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode,
String methodName,
List<?> ignoreClasses) |
static boolean |
implementsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode,
String methodName)
Tests whether the ClasNode implements the specified method name.
|
static void |
injectConstant(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
Class<?> propertyClass,
Object value) |
static org.codehaus.groovy.ast.FieldNode |
injectField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type,
org.codehaus.groovy.ast.expr.Expression initialExpression) |
static org.codehaus.groovy.ast.FieldNode |
injectField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type,
org.codehaus.groovy.ast.expr.Expression initialExpression,
boolean deep) |
static org.codehaus.groovy.ast.FieldNode |
injectField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type,
Object value) |
static org.codehaus.groovy.ast.FieldNode |
injectField(org.codehaus.groovy.ast.ClassNode classNode,
String name,
int modifiers,
org.codehaus.groovy.ast.ClassNode type,
Object value,
boolean deep) |
static void |
injectInterface(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.ClassNode type) |
static void |
injectInterface(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.ClassNode type,
boolean deep) |
static void |
injectMethod(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.MethodNode methodNode) |
static void |
injectMethod(org.codehaus.groovy.ast.ClassNode classNode,
org.codehaus.groovy.ast.MethodNode methodNode,
boolean deep) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
Class<?> propertyClass) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
Class<?> propertyClass,
Object value) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
org.codehaus.groovy.ast.ClassNode propertyClass) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
int modifiers,
Class<?> propertyClass) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
int modifiers,
Class<?> propertyClass,
Object value) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
int modifiers,
org.codehaus.groovy.ast.ClassNode propertyClass) |
static void |
injectProperty(org.codehaus.groovy.ast.ClassNode classNode,
String propertyName,
int modifiers,
org.codehaus.groovy.ast.ClassNode propertyClass,
Object value) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
iof(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.ClassNode rhv) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
iof(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static boolean |
isEnum(org.codehaus.groovy.ast.ClassNode classNode) |
static org.codehaus.groovy.ast.expr.ListExpression |
listx(org.codehaus.groovy.ast.expr.Expression... expressions) |
static org.codehaus.groovy.ast.expr.MapEntryExpression |
mapEntryx(org.codehaus.groovy.ast.expr.Expression key,
org.codehaus.groovy.ast.expr.Expression value) |
static org.codehaus.groovy.ast.expr.MapExpression |
mapx(org.codehaus.groovy.ast.expr.MapEntryExpression... entries) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
ne(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.expr.NotExpression |
not(org.codehaus.groovy.ast.expr.Expression expr) |
static org.codehaus.groovy.ast.expr.BinaryExpression |
or(org.codehaus.groovy.ast.expr.Expression lhv,
org.codehaus.groovy.ast.expr.Expression rhv) |
static org.codehaus.groovy.ast.Parameter |
param(org.codehaus.groovy.ast.ClassNode type,
String name) |
static org.codehaus.groovy.ast.Parameter |
param(org.codehaus.groovy.ast.ClassNode type,
String name,
org.codehaus.groovy.ast.expr.Expression initialExpression) |
static boolean |
parametersEqual(org.codehaus.groovy.ast.Parameter[] a,
org.codehaus.groovy.ast.Parameter[] b) |
static org.codehaus.groovy.ast.Parameter[] |
params(org.codehaus.groovy.ast.Parameter... params) |
static org.codehaus.groovy.ast.expr.Expression |
prop(org.codehaus.groovy.ast.expr.Expression owner,
org.codehaus.groovy.ast.expr.Expression property) |
static org.codehaus.groovy.ast.expr.Expression |
prop(org.codehaus.groovy.ast.expr.Expression owner,
String property) |
static org.codehaus.groovy.ast.stmt.Statement |
returns(org.codehaus.groovy.ast.expr.Expression expr) |
static org.codehaus.groovy.ast.stmt.ExpressionStatement |
stmnt(org.codehaus.groovy.ast.expr.Expression expression) |
static org.codehaus.groovy.ast.ClassNode[] |
throwing(org.codehaus.groovy.ast.ClassNode... exceptions) |
static org.codehaus.groovy.ast.expr.VariableExpression |
var(String name) |
static org.codehaus.groovy.ast.expr.VariableExpression |
var(String name,
org.codehaus.groovy.ast.ClassNode type) |
static org.codehaus.groovy.ast.expr.ArgumentListExpression |
vars(String... names) |
public static final org.codehaus.groovy.ast.ClassNode[] NO_EXCEPTIONS
public static final org.codehaus.groovy.ast.Parameter[] NO_PARAMS
public static final org.codehaus.groovy.ast.expr.Expression THIS
public static final org.codehaus.groovy.ast.expr.Expression SUPER
public static final org.codehaus.groovy.ast.expr.ArgumentListExpression NO_ARGS
public static final org.codehaus.groovy.syntax.Token ASSIGN
public static final org.codehaus.groovy.syntax.Token EQ
public static final org.codehaus.groovy.syntax.Token NE
public static final org.codehaus.groovy.syntax.Token AND
public static final org.codehaus.groovy.syntax.Token OR
public static final org.codehaus.groovy.syntax.Token CMP
public static final org.codehaus.groovy.syntax.Token INSTANCEOF
public static boolean hasProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName)
classNode
- The ClassNodepropertyName
- The name of the propertypublic static boolean hasOrInheritsProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName)
public static boolean implementsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode, String methodName)
classNode
- The ClassNodemethodName
- The method namepublic static boolean implementsOrInheritsZeroArgMethod(org.codehaus.groovy.ast.ClassNode classNode, String methodName, List<?> ignoreClasses)
public static boolean implementsMethod(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode)
public static boolean implementsOrInheritsMethod(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode)
public static void injectMethod(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode)
public static void injectMethod(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode, boolean deep)
public static boolean hasField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type)
public static boolean hasOrInheritsField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type)
public static org.codehaus.groovy.ast.FieldNode injectField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type, Object value)
public static org.codehaus.groovy.ast.FieldNode injectField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type, Object value, boolean deep)
public static org.codehaus.groovy.ast.FieldNode injectField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type, org.codehaus.groovy.ast.expr.Expression initialExpression)
public static org.codehaus.groovy.ast.FieldNode injectField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type, org.codehaus.groovy.ast.expr.Expression initialExpression, boolean deep)
public static org.codehaus.groovy.ast.FieldNode getField(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type)
public static org.codehaus.groovy.ast.FieldNode getFieldDeep(org.codehaus.groovy.ast.ClassNode classNode, String name, int modifiers, org.codehaus.groovy.ast.ClassNode type)
public static void injectInterface(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.ClassNode type)
public static void injectInterface(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.ClassNode type, boolean deep)
public static String getFullName(org.codehaus.groovy.ast.ClassNode classNode)
classNode
- The class nodepublic static org.codehaus.groovy.ast.ClassNode getFurthestParent(org.codehaus.groovy.ast.ClassNode classNode)
public static boolean isEnum(org.codehaus.groovy.ast.ClassNode classNode)
public static boolean addMethod(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode)
public static boolean addMethod(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.ast.MethodNode methodNode, boolean replace)
public static boolean parametersEqual(org.codehaus.groovy.ast.Parameter[] a, org.codehaus.groovy.ast.Parameter[] b)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, Class<?> propertyClass)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, Class<?> propertyClass, Object value)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, int modifiers, Class<?> propertyClass)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, int modifiers, Class<?> propertyClass, Object value)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, org.codehaus.groovy.ast.ClassNode propertyClass)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, int modifiers, org.codehaus.groovy.ast.ClassNode propertyClass)
public static void injectProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, int modifiers, org.codehaus.groovy.ast.ClassNode propertyClass, Object value)
public static void injectConstant(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, Class<?> propertyClass, Object value)
public static void addReadOnlyProperty(org.codehaus.groovy.ast.ClassNode classNode, String propertyName, org.codehaus.groovy.ast.ClassNode propertyClass, Object value)
public static org.codehaus.groovy.ast.stmt.Statement returns(org.codehaus.groovy.ast.expr.Expression expr)
public static org.codehaus.groovy.ast.expr.ArgumentListExpression vars(String... names)
public static org.codehaus.groovy.ast.expr.ArgumentListExpression args(org.codehaus.groovy.ast.expr.Expression... expressions)
public static org.codehaus.groovy.ast.expr.ArgumentListExpression args(List<org.codehaus.groovy.ast.expr.Expression> expressions)
public static org.codehaus.groovy.ast.expr.VariableExpression var(String name)
public static org.codehaus.groovy.ast.expr.VariableExpression var(String name, org.codehaus.groovy.ast.ClassNode type)
public static org.codehaus.groovy.ast.Parameter param(org.codehaus.groovy.ast.ClassNode type, String name)
public static org.codehaus.groovy.ast.Parameter param(org.codehaus.groovy.ast.ClassNode type, String name, org.codehaus.groovy.ast.expr.Expression initialExpression)
public static org.codehaus.groovy.ast.ClassNode[] throwing(org.codehaus.groovy.ast.ClassNode... exceptions)
public static org.codehaus.groovy.ast.Parameter[] params(org.codehaus.groovy.ast.Parameter... params)
public static org.codehaus.groovy.ast.expr.NotExpression not(org.codehaus.groovy.ast.expr.Expression expr)
public static org.codehaus.groovy.ast.expr.ConstantExpression constx(Object val)
public static org.codehaus.groovy.ast.expr.ClassExpression classx(org.codehaus.groovy.ast.ClassNode clazz)
public static org.codehaus.groovy.ast.expr.ClassExpression classx(Class<?> clazz)
public static org.codehaus.groovy.ast.stmt.BlockStatement block(org.codehaus.groovy.ast.stmt.Statement... stms)
public static org.codehaus.groovy.ast.stmt.Statement ifs(org.codehaus.groovy.ast.expr.Expression cond, org.codehaus.groovy.ast.expr.Expression trueExpr)
public static org.codehaus.groovy.ast.stmt.Statement ifs(org.codehaus.groovy.ast.expr.Expression cond, org.codehaus.groovy.ast.expr.Expression trueExpr, org.codehaus.groovy.ast.expr.Expression falseExpr)
public static org.codehaus.groovy.ast.stmt.Statement ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond, org.codehaus.groovy.ast.expr.Expression trueExpr)
public static org.codehaus.groovy.ast.stmt.Statement ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond, org.codehaus.groovy.ast.expr.Expression trueExpr, org.codehaus.groovy.ast.expr.Expression falseExpr)
public static org.codehaus.groovy.ast.stmt.Statement ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond, org.codehaus.groovy.ast.stmt.Statement trueStmnt)
public static org.codehaus.groovy.ast.stmt.Statement ifs_no_return(org.codehaus.groovy.ast.expr.Expression cond, org.codehaus.groovy.ast.stmt.Statement trueStmnt, org.codehaus.groovy.ast.stmt.Statement falseStmnt)
public static org.codehaus.groovy.ast.stmt.Statement decls(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.stmt.Statement assigns(org.codehaus.groovy.ast.expr.Expression expression, org.codehaus.groovy.ast.expr.Expression value)
public static org.codehaus.groovy.ast.expr.BinaryExpression assign(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression eq(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression ne(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression and(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression or(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression cmp(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression iof(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.expr.Expression rhv)
public static org.codehaus.groovy.ast.expr.BinaryExpression iof(org.codehaus.groovy.ast.expr.Expression lhv, org.codehaus.groovy.ast.ClassNode rhv)
public static org.codehaus.groovy.ast.expr.Expression prop(org.codehaus.groovy.ast.expr.Expression owner, String property)
public static org.codehaus.groovy.ast.expr.Expression prop(org.codehaus.groovy.ast.expr.Expression owner, org.codehaus.groovy.ast.expr.Expression property)
public static org.codehaus.groovy.ast.expr.MethodCallExpression call(org.codehaus.groovy.ast.expr.Expression receiver, String methodName, org.codehaus.groovy.ast.expr.ArgumentListExpression args)
public static org.codehaus.groovy.ast.expr.StaticMethodCallExpression call(org.codehaus.groovy.ast.ClassNode receiver, String methodName, org.codehaus.groovy.ast.expr.ArgumentListExpression args)
public static org.codehaus.groovy.ast.stmt.ExpressionStatement stmnt(org.codehaus.groovy.ast.expr.Expression expression)
public static org.codehaus.groovy.ast.expr.FieldExpression field(org.codehaus.groovy.ast.FieldNode fieldNode)
public static org.codehaus.groovy.ast.expr.FieldExpression field(org.codehaus.groovy.ast.ClassNode owner, String fieldName)
public static org.codehaus.groovy.ast.expr.ConstructorCallExpression ctor(org.codehaus.groovy.ast.ClassNode type)
public static org.codehaus.groovy.ast.expr.ConstructorCallExpression ctor(org.codehaus.groovy.ast.ClassNode type, org.codehaus.groovy.ast.expr.Expression args)
public static org.codehaus.groovy.ast.expr.ListExpression listx(org.codehaus.groovy.ast.expr.Expression... expressions)
public static org.codehaus.groovy.ast.expr.MapEntryExpression mapEntryx(org.codehaus.groovy.ast.expr.Expression key, org.codehaus.groovy.ast.expr.Expression value)
public static org.codehaus.groovy.ast.expr.MapExpression mapx(org.codehaus.groovy.ast.expr.MapEntryExpression... entries)