public class IteratorClosureAdapter<T> extends Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF| Constructor and Description |
|---|
IteratorClosureAdapter(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList() |
protected Object |
doCall(T argument) |
MetaClass |
getMetaClass()
Returns the metaclass for a given class.
|
void |
setMetaClass(MetaClass metaClass)
Allows the MetaClass to be replaced with a derived implementation.
|
asWritable, call, call, call, clone, 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, trampolineinvokeMethodpublic IteratorClosureAdapter(Object delegate)
public MetaClass getMetaClass()
GroovyObjectgetMetaClass in interface GroovyObjectgetMetaClass in class GroovyObjectSupportpublic void setMetaClass(MetaClass metaClass)
GroovyObjectsetMetaClass in interface GroovyObjectsetMetaClass in class GroovyObjectSupportmetaClass - the new metaclass