public class ClosureMetaMethod extends MetaMethod implements ClosureInvokingMethod
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
|
ParameterTypes |
getParamTypes() |
java.lang.Class |
getReturnType() |
java.lang.Object |
invoke(java.lang.Object object,
java.lang.Object[] arguments) |
checkParameters, clone, equal, equal, getDescriptor, getMopName, getNativeParameterTypes, getParameterTypes, getSignature, isCacheable, isMethod, isPrivate, isProtected, isPublic, isSame, isStatic, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isStatic
public 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 MetaMethod
public java.lang.String getName()
ClosureInvokingMethod
getName
in interface ClosureInvokingMethod
getName
in class MetaMethod
public java.lang.Class getReturnType()
getReturnType
in class MetaMethod
public CachedClass getDeclaringClass()
getDeclaringClass
in class MetaMethod
public ParameterTypes getParamTypes()
getParamTypes
in class MetaMethod
public java.lang.Object invoke(java.lang.Object object, java.lang.Object[] arguments)
invoke
in class MetaMethod
public Closure getClosure()
getClosure
in interface ClosureInvokingMethod