Package org.codehaus.groovy.runtime
Class IteratorClosureAdapter<T>
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure
org.codehaus.groovy.runtime.IteratorClosureAdapter<T>
- All Implemented Interfaces:
- GroovyCallable,- GroovyObject,- Serializable,- Cloneable,- Runnable,- Callable
A closure which stores calls in a List so that method calls 
 can be iterated over in a 'yield' style way
- See Also:
- 
Field SummaryFields inherited from class groovy.lang.ClosureDELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionasList()protected ObjectReturns the metaclass for a given class.voidsetMetaClass(MetaClass metaClass) Allows the MetaClass to be replaced with a derived implementation.Methods inherited from class groovy.lang.ClosureandThen, andThenSelf, andThenSelf, asWritable, call, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampolineMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectinvokeMethod
- 
Constructor Details- 
IteratorClosureAdapter
 
- 
- 
Method Details- 
getMetaClassDescription copied from interface:GroovyObjectReturns the metaclass for a given class.- Specified by:
- getMetaClassin interface- GroovyObject
- Overrides:
- getMetaClassin class- GroovyObjectSupport
- Returns:
- the metaClass of this instance
 
- 
setMetaClassDescription copied from interface:GroovyObjectAllows the MetaClass to be replaced with a derived implementation.- Specified by:
- setMetaClassin interface- GroovyObject
- Overrides:
- setMetaClassin class- GroovyObjectSupport
- Parameters:
- metaClass- the new metaclass
 
- 
asList
- 
doCall
 
-