public class ExecutorSingleIterationManager extends AbstractIterationManager
IterationManager.IterationManagerExtension| Constructor and Description |
|---|
ExecutorSingleIterationManager(Evaluator evaluator,
TypeId returnTypeId,
LibraryBinaryOperation body,
CollectionValue collectionValue,
Object accumulatorValue)
Deprecated.
use Executor
|
ExecutorSingleIterationManager(Executor executor,
TypeId returnTypeId,
LibraryBinaryOperation body,
CollectionValue collectionValue,
Object accumulatorValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advanceIterators()
Advance the iterators to the next iteration, returning false once all possible
iterator states have been exhausted.
|
IterationManager |
createNestedIterationManager(CollectionValue value)
Create a nested iteration supervisor.
|
Object |
evaluateBody()
Evaluate the iteration body for the current iterators and return the evaluation result.
|
Object |
get()
Get the current state of the iterator.
|
Object |
getAccumulatorValue()
Get the current state of the accumulator.
|
int |
getDepth() |
ExecutorSingleIterationManager |
getRootIterationManager() |
CollectionValue |
getSourceCollection()
Return the source collection over which this (nested) iteration iterates.
|
boolean |
hasCurrent()
Return true if the iterators have a step to be evaluated.
|
Object |
updateAccumulator(Object newValue)
Update the accumulator with the result of a body iteration.
|
dispose, getEvaluator, getExecutor, getStandardLibrary@Deprecated public ExecutorSingleIterationManager(Evaluator evaluator, TypeId returnTypeId, LibraryBinaryOperation body, CollectionValue collectionValue, Object accumulatorValue)
public ExecutorSingleIterationManager(Executor executor, TypeId returnTypeId, LibraryBinaryOperation body, CollectionValue collectionValue, Object accumulatorValue)
public boolean advanceIterators()
IterationManagerpublic IterationManager createNestedIterationManager(CollectionValue value)
IterationManagercreateNestedIterationManager in interface IterationManagercreateNestedIterationManager in class AbstractIterationManagervalue - the nested iteration domainpublic Object evaluateBody()
IterationManagerpublic Object get()
IterationManagerget in interface IterationManagerget in class AbstractIterationManagerpublic Object getAccumulatorValue()
IterationManagerpublic int getDepth()
public ExecutorSingleIterationManager getRootIterationManager()
public CollectionValue getSourceCollection()
IterationManagerpublic boolean hasCurrent()
IterationManagerpublic Object updateAccumulator(Object newValue)
IterationManagerCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.