@CompileStatic class AstMethodDispatchUtils extends GeneralUtils
| Fields inherited from class | Fields |
|---|---|
class GeneralUtils |
ASSIGN, EQ, NE, NOT_IDENTICAL, GE, GT, LE, LT, AND, OR, CMP, INSTANCEOF, MINUS, PLUS |
| Constructor and description |
|---|
AstMethodDispatchUtils() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static MethodCallExpression |
callD(Class targetType, String var, String methodName, Expression arguments)Make a direct method call on this object for the given name and arguments |
|
static MethodCallExpression |
callD(ClassNode targetType, String var, String methodName, Expression arguments)Make a direct method call on this object for the given name and arguments |
|
static MethodCallExpression |
callD(Expression var, String methodName, Expression arguments)Make a direct method call on this object for the given name and arguments |
|
static MethodCallExpression |
callThisD(Class thisType, String methodName, Expression arguments)Make a direct method call on this object for the given name and arguments |
|
static MethodCallExpression |
callThisD(ClassNode thisType, String methodName, Expression arguments)Make a direct method call on this object for the given name and arguments |
|
static MapExpression |
namedArgs(Map<String, ? extends Expression> args)Create named arguments |
|
static Parameter[] |
paramsForArgs(Expression expression) |
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Make a direct method call on this object for the given name and arguments
Create named arguments
args - The args