public class ClosureMetaMethod extends MetaMethod implements ClosureInvokingMethod
isVargsMethod, nativeParamTypes, parameterTypes| Constructor and Description |
|---|
ClosureMetaMethod(java.lang.String name,
java.lang.Class declaringClass,
Closure c,
CachedMethod doCall) |
ClosureMetaMethod(java.lang.String name,
Closure c,
CachedMethod doCall) |
| Modifier and Type | Method and 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()
Gets the class where this method is declared
|
CachedMethod |
getDoCall() |
int |
getModifiers()
Returns the modifiers for this method
|
java.lang.String |
getName()
Returns the name of the method represented by this class
|
java.lang.Class |
getReturnType()
Access the return type for this method
|
java.lang.Object |
invoke(java.lang.Object object,
java.lang.Object[] arguments)
Invoke this method
|
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(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()
MetaMethodgetModifiers in class MetaMethodpublic java.lang.String getName()
MetaMethodgetName in interface ClosureInvokingMethodgetName in class MetaMethodpublic java.lang.Class getReturnType()
MetaMethodgetReturnType in class MetaMethodpublic CachedClass getDeclaringClass()
MetaMethodgetDeclaringClass in class MetaMethodpublic java.lang.Object invoke(java.lang.Object object,
java.lang.Object[] arguments)
MetaMethodinvoke in class MetaMethodobject - The object this method should be invoked onarguments - The arguments for the method if applicablepublic Closure getClosure()
getClosure in interface ClosureInvokingMethodpublic 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)