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