ClosureInvokingMethod
public class ClosureMetaMethod extends MetaMethod implements ClosureInvokingMethod
isVargsMethod, nativeParamTypes, parameterTypes
Constructor | Description |
---|---|
ClosureMetaMethod(java.lang.String name,
Closure c,
CachedMethod doCall) |
|
ClosureMetaMethod(java.lang.String name,
java.lang.Class declaringClass,
Closure c,
CachedMethod doCall) |
Modifier and Type | Method | Description |
---|---|---|
static ClosureMetaMethod |
copy(ClosureMetaMethod closureMethod) |
|
static java.util.List<MetaMethod> |
createMethodList(java.lang.String name,
java.lang.Class declaringClass,
Closure closure) |
|
Closure |
getClosure() |
Retrieves the closure that is invoked by this MetaMethod
|
CachedClass |
getDeclaringClass() |
|
CachedMethod |
getDoCall() |
|
int |
getModifiers() |
|
java.lang.String |
getName() |
The method name
|
java.lang.Class |
getReturnType() |
|
java.lang.Object |
invoke(java.lang.Object object,
java.lang.Object[] arguments) |
isStatic
checkParameters, clone, doMethodInvoke, equal, equal, getDescriptor, getMopName, getSignature, isAbstract, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, processDoMethodInvokeException, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, getPT, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, setParametersTypes
public ClosureMetaMethod(java.lang.String name, Closure c, CachedMethod doCall)
public ClosureMetaMethod(java.lang.String name, java.lang.Class declaringClass, Closure c, CachedMethod doCall)
public int getModifiers()
getModifiers
in class MetaMethod
public java.lang.String getName()
ClosureInvokingMethod
getName
in interface ClosureInvokingMethod
getName
in class MetaMethod
public java.lang.Class getReturnType()
getReturnType
in class MetaMethod
public CachedClass getDeclaringClass()
getDeclaringClass
in class MetaMethod
public java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)
invoke
in class MetaMethod
public Closure getClosure()
getClosure
in interface ClosureInvokingMethod
public static java.util.List<MetaMethod> createMethodList(java.lang.String name, java.lang.Class declaringClass, Closure closure)
public CachedMethod getDoCall()
public static ClosureMetaMethod copy(ClosureMetaMethod closureMethod)