|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Closure
groovy.lang.Closure.WritableClosure
Nested Class Summary |
Nested classes inherited from class groovy.lang.Closure |
|
Field Summary |
Fields inherited from class groovy.lang.Closure |
DONE, SKIP |
Fields inherited from class groovy.lang.GroovyObjectSupport |
|
Constructor Summary | |
Closure.WritableClosure()
|
Method Summary | |
Closure |
asWritable()
|
java.lang.Object |
call()
Invokes the closure without any parameters, returning any value if applicable. |
java.lang.Object |
call(java.lang.Object arguments)
Invokes the closure, returning any value if applicable. |
java.lang.Object |
clone()
|
Closure |
curry(java.lang.Object[] arguments)
Support for closure currying |
protected java.lang.Object |
doCall(java.lang.Object p1)
An attempt to optimise calling closures with one parameter If the closure has one untyped parameter then it will overload this function If not this will be called ans will use reflection to deal with the case of a single typed parameter |
protected java.lang.Object |
doCall(java.lang.Object p1,
java.lang.Object p2)
An attempt to optimise calling closures with two parameters If the closure has two untyped parameters then it will overload this function If not this will be called ans will use reflection to deal with the case of one or two typed parameters |
boolean |
equals(java.lang.Object arg0)
|
java.lang.Object |
getDelegate()
|
java.lang.Class[] |
getParameterTypes()
|
java.lang.Object |
getProperty(java.lang.String property)
|
int |
hashCode()
|
java.lang.Object |
invokeMethod(java.lang.String method,
java.lang.Object arguments)
Invokes the given method |
void |
run()
|
void |
setDelegate(java.lang.Object delegate)
Allows the delegate to be changed such as when performing markup building |
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value |
java.lang.String |
toString()
|
java.io.Writer |
writeTo(java.io.Writer out)
writes this object to the given stream |
Methods inherited from class groovy.lang.Closure |
getDirective, getMethod, getOwner, setDirective, throwRuntimeException |
Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, setMetaClass |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Closure.WritableClosure()
Method Detail |
public java.io.Writer writeTo(java.io.Writer out) throws java.io.IOException
Writable
writeTo
in interface Writable
java.io.IOException
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
GroovyObject
invokeMethod
in interface GroovyObject
invokeMethod
in class Closure
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface GroovyObject
getProperty
in class Closure
public void setProperty(java.lang.String property, java.lang.Object newValue)
GroovyObject
setProperty
in interface GroovyObject
setProperty
in class Closure
public java.lang.Object call()
Closure
call
in class Closure
public java.lang.Object call(java.lang.Object arguments)
Closure
call
in class Closure
arguments
- could be a single value or a List of values
protected java.lang.Object doCall(java.lang.Object p1)
Closure
doCall
in class Closure
p1
-
protected java.lang.Object doCall(java.lang.Object p1, java.lang.Object p2)
Closure
doCall
in class Closure
p1
-
public java.lang.Object getDelegate()
getDelegate
in class Closure
public void setDelegate(java.lang.Object delegate)
Closure
setDelegate
in class Closure
delegate
- public java.lang.Class[] getParameterTypes()
getParameterTypes
in class Closure
public Closure asWritable()
asWritable
in class Closure
public void run()
run
in interface java.lang.Runnable
run
in class Closure
public Closure curry(java.lang.Object[] arguments)
Closure
curry
in class Closure
arguments
- public java.lang.Object clone()
clone
in class Closure
public int hashCode()
public boolean equals(java.lang.Object arg0)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |