|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Closure
org.codehaus.groovy.runtime.IteratorClosureAdapter
A closure which stores calls in a List so that method calls can be iterated over in a 'yield' style way
Field Summary |
Fields inherited from class groovy.lang.Closure |
DONE, SKIP |
Constructor Summary | |
IteratorClosureAdapter(Object delegate)
|
Method Summary | |
List |
asList()
|
protected Object |
doCall(Object argument)
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 |
groovy.lang.MetaClass |
getMetaClass()
|
void |
setMetaClass(groovy.lang.MetaClass metaClass)
Allows the MetaClass to be replaced with a derived implementation |
Methods inherited from class groovy.lang.Closure |
asWritable, call, call, clone, curry, doCall, getDelegate, getDirective, getMethod, getOwner, getParameterTypes, getProperty, invokeMethod, run, setDelegate, setDirective, setProperty, throwRuntimeException |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IteratorClosureAdapter(Object delegate)
Method Detail |
public groovy.lang.MetaClass getMetaClass()
public void setMetaClass(groovy.lang.MetaClass metaClass)
groovy.lang.GroovyObject
public List asList()
protected Object doCall(Object argument)
groovy.lang.Closure
argument
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |