|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementation note: This has to be an inner class! Reason: Closure.this.call will call the outer call method, but with the inner class as executing object. This means any invokeMethod or getProperty call will be called on this inner class instead of the outer!
Constructor Summary | |
WritableClosure()
|
Method Summary | |
---|---|
Closure |
asWritable()
|
Object |
call()
|
Object |
call(Object arguments)
|
Object |
call(def args)
|
Object |
clone()
|
Closure |
curry(def arguments)
|
Object |
doCall(def args)
|
boolean |
equals(Object arg0)
|
Object |
getDelegate()
|
int |
getDirective()
|
int |
getMaximumNumberOfParameters()
|
def |
getParameterTypes()
|
Object |
getProperty(String property)
|
int |
getResolveStrategy()
|
int |
hashCode()
|
Object |
invokeMethod(String method, Object arguments)
|
void |
run()
|
void |
setDelegate(Object delegate)
|
void |
setDirective(int directive)
|
void |
setProperty(String property, Object newValue)
|
void |
setResolveStrategy(int resolveStrategy)
|
String |
toString()
|
Writer |
writeTo(Writer out)
|
Constructor Detail |
---|
public WritableClosure()
Method Detail |
---|
public Closure asWritable()
public Object call()
public Object call(Object arguments)
public Object call(def args)
public Object clone()
public Closure curry(def arguments)
public Object doCall(def args)
public boolean equals(Object arg0)
public Object getDelegate()
public int getDirective()
public int getMaximumNumberOfParameters()
public def getParameterTypes()
public Object getProperty(String property)
public int getResolveStrategy()
public int hashCode()
public Object invokeMethod(String method, Object arguments)
public void run()
public void setDelegate(Object delegate)
public void setDirective(int directive)
public void setProperty(String property, Object newValue)
public void setResolveStrategy(int resolveStrategy)
public String toString()
public Writer writeTo(Writer out)