|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--groovy.lang.GroovyObjectSupport | +--groovy.lang.Closure
Represents any closure object in Groovy.
Constructor Summary | |
Closure(Object delegate)
|
Method Summary | |
Object |
call()
Invokes the closure without any parameters, returning any value if applicable. |
Object |
call(Object arguments)
Invokes the closure, returning any value if applicable. |
Object |
getDelegate()
|
Object |
invokeMethod(String method,
Object arguments)
Invokes the given method |
void |
setDelegate(Object delegate)
Allows the delegate to be changed such as when performing markup building |
Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, getProperty, setMetaClass, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Closure(Object delegate)
Method Detail |
public Object invokeMethod(String method, Object arguments)
GroovyObject
invokeMethod
in interface GroovyObject
invokeMethod
in class GroovyObjectSupport
public Object call()
public Object call(Object arguments)
arguments
- could be a single value or a List of values
public Object getDelegate()
public void setDelegate(Object delegate)
delegate
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |