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:
java.util.Iterator<T>
- Enclosing class:
- LazyCollection<E>
public static class LazyCollection.CollectIterator<T> extends LazyCollection.ReadOnlyIterator<T>
LazyCollection.ReadOnlyIteratorthat collects the results of evaluating a function on each of the elements from the underlying collection.
-
-
Field Summary
Fields Modifier and Type Field Description protected CodeBlockfunctionprotected java.util.Iterator<?>innerprotected StackFrameparentFrame
-
Constructor Summary
Constructors Constructor Description CollectIterator(java.lang.Iterable<?> inner, CodeBlock function, StackFrame parentFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Field Detail
-
inner
protected final java.util.Iterator<?> inner
-
function
protected final CodeBlock function
-
parentFrame
protected final StackFrame parentFrame
-
-
Constructor Detail
-
CollectIterator
public CollectIterator(java.lang.Iterable<?> inner, CodeBlock function, StackFrame parentFrame)- Parameters:
inner- the underlying collectionfunction- the value functionparentFrame- the parent stack frame context
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public T next()
-
-