[Java] Class IteratorClosureAdapter<T>
- 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
- Authors:
- James Strachan
Fields inherited from class | Fields |
---|---|
class Closure | DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, OWNER_FIRST, OWNER_ONLY, SKIP, TO_SELF, maximumNumberOfParameters, parameterTypes |
Constructor Summary
Constructor and description |
---|
IteratorClosureAdapter
(Object delegate) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
List<T> |
asList() | |
protected Object |
doCall(T argument) | |
MetaClass |
getMetaClass() | |
void |
setMetaClass(MetaClass metaClass) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Closure | 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 |
class GroovyObjectSupport | getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public IteratorClosureAdapter(Object delegate)
Method Detail
public List<T> asList()
protected Object doCall(T argument)
public MetaClass getMetaClass()
public void setMetaClass(MetaClass metaClass)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/runtime/IteratorClosureAdapter.html