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