public class ExecutorDoubleIterationManager extends AbstractIterationManager
IterationManager.IterationManagerExtension
Constructor and Description |
---|
ExecutorDoubleIterationManager(Evaluator evaluator,
TypeId returnTypeId,
LibraryTernaryOperation body,
CollectionValue collectionValue,
Object accumulatorValue)
Deprecated.
use Executor
|
ExecutorDoubleIterationManager(Executor executor,
TypeId returnTypeId,
LibraryTernaryOperation 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.
|
Object |
evaluateBody()
Evaluate the iteration body for the current iterators and return the evaluation result.
|
Object |
getAccumulatorValue()
Get the current state of the accumulator.
|
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.
|
createNestedIterationManager, dispose, get, getEvaluator, getExecutor, getStandardLibrary
@Deprecated public ExecutorDoubleIterationManager(Evaluator evaluator, TypeId returnTypeId, LibraryTernaryOperation body, CollectionValue collectionValue, Object accumulatorValue)
public ExecutorDoubleIterationManager(Executor executor, TypeId returnTypeId, LibraryTernaryOperation body, CollectionValue collectionValue, Object accumulatorValue)
public boolean advanceIterators()
IterationManager
public Object evaluateBody()
IterationManager
public Object getAccumulatorValue()
IterationManager
public CollectionValue getSourceCollection()
IterationManager
public boolean hasCurrent()
IterationManager
public Object updateAccumulator(Object newValue)
IterationManager
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.