public class EvaluatorSingleIterationManager extends AbstractEvaluatorIterationManager
IterationManager.IterationManagerExtension
Constructor and Description |
---|
EvaluatorSingleIterationManager(Evaluator invokingEvaluator,
OCLExpression body,
CollectionValue collectionValue,
TypedElement accumulator,
Object accumulatorValue,
TypedElement referredIterator)
Deprecated.
supply a callExp
|
EvaluatorSingleIterationManager(Executor invokingExecutor,
CallExp callExp,
OCLExpression body,
CollectionValue collectionValue,
TypedElement accumulator,
Object accumulatorValue,
TypedElement referredIterator) |
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 |
get()
Get the current state of the iterator.
|
int |
getDepth() |
EvaluatorSingleIterationManager |
getRootIterationManager() |
boolean |
hasCurrent()
Return true if the iterators have a step to be evaluated.
|
dispose, evaluateBody, getAccumulatorValue, getCollectionValue, getEvaluationEnvironment, getSourceCollection, toString, updateAccumulator
getEvaluator, getExecutor, getStandardLibrary
@Deprecated public EvaluatorSingleIterationManager(Evaluator invokingEvaluator, OCLExpression body, CollectionValue collectionValue, TypedElement accumulator, Object accumulatorValue, TypedElement referredIterator)
public EvaluatorSingleIterationManager(Executor invokingExecutor, CallExp callExp, OCLExpression body, CollectionValue collectionValue, TypedElement accumulator, Object accumulatorValue, TypedElement referredIterator)
public boolean advanceIterators()
IterationManager
public IterationManager createNestedIterationManager(CollectionValue value)
IterationManager
createNestedIterationManager
in interface IterationManager
createNestedIterationManager
in class AbstractIterationManager
value
- the nested iteration domainpublic Object get()
IterationManager
get
in interface IterationManager
get
in class AbstractIterationManager
public int getDepth()
public EvaluatorSingleIterationManager getRootIterationManager()
public boolean hasCurrent()
IterationManager
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.