|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class represents a MetaMethod that is a closure that pretends to be a static method. It is used by ExpandoMetaClass to allow addition of static methods defined as closures
Field Summary | |
---|---|
Closure |
callable
|
CachedClass |
declaringClass
|
String |
name
|
Constructor Summary | |
ClosureStaticMetaMethod(String name, Class declaringClass, Closure c)
|
Method Summary | |
---|---|
Closure |
getClosure()
Retrieves the closure that is invoked by this MetaMethod |
CachedClass |
getDeclaringClass()
|
int |
getModifiers()
|
String |
getName()
|
Class |
getReturnType()
|
Object |
invoke(Object object, def arguments)
|
Constructor Detail |
---|
public ClosureStaticMetaMethod(String name, Class declaringClass, Closure c)
Method Detail |
---|
public Closure getClosure()
public CachedClass getDeclaringClass()
public int getModifiers()
public String getName()
public Class getReturnType()
public Object invoke(Object object, def arguments)