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, trampoline
invokeMethod
public IteratorClosureAdapter(Object delegate)
public MetaClass getMetaClass()
GroovyObject
getMetaClass
in interface GroovyObject
getMetaClass
in class GroovyObjectSupport
public void setMetaClass(MetaClass metaClass)
GroovyObject
setMetaClass
in interface GroovyObject
setMetaClass
in class GroovyObjectSupport
metaClass
- the new metaclass