Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.CollectIterator<T>
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<T>
org.eclipse.m2m.atl.emftvm.util.LazyCollection.CollectIterator<T>
- Type Parameters:
T- the function return type
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
LazyCollection<E>
LazyCollection.ReadOnlyIterator that collects the results of
evaluating a function on each of the elements from the
underlying collection.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CodeBlockprotected final Iterator<?> protected final StackFrame -
Constructor Summary
ConstructorsConstructorDescriptionCollectIterator(Iterable<?> inner, CodeBlock function, StackFrame parentFrame) -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
inner
-
function
-
parentFrame
-
-
Constructor Details
-
CollectIterator
- Parameters:
inner- the underlying collectionfunction- the value functionparentFrame- the parent stack frame context
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-