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() |
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, toString
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getParameterTypes, getPT, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isStatic
public 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)
invoke
in class MetaMethod
public int getModifiers()
getModifiers
in class MetaMethod
public String getName()
ClosureInvokingMethod
getName
in interface ClosureInvokingMethod
getName
in class MetaMethod
public Class getReturnType()
getReturnType
in class MetaMethod
public CachedClass getDeclaringClass()
getDeclaringClass
in class MetaMethod
public Closure getClosure()
getClosure
in interface ClosureInvokingMethod