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