|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ocl.examples.domain.library.AbstractIterationManager org.eclipse.ocl.examples.library.executor.ExecutorSingleIterationManager
public class ExecutorSingleIterationManager
Field Summary | |
---|---|
protected LibraryBinaryOperation |
body
|
protected java.util.Iterator<Value> |
iteratorValue
|
protected DomainType |
returnType
|
Fields inherited from class org.eclipse.ocl.examples.domain.library.AbstractIterationManager |
---|
evaluator |
Constructor Summary | |
---|---|
ExecutorSingleIterationManager(DomainEvaluator evaluator,
DomainType returnType,
LibraryBinaryOperation body,
CollectionValue collectionValue,
Value accumulatorValue)
|
Method Summary | |
---|---|
boolean |
advanceIterators()
Advance the iterators to the next iteration, returning false once all possible iterator states have been exhausted. |
Value |
evaluateBody()
Evaluate the iteration body for the current iterators and return the evaluation result. |
Value |
get()
Get the current state of the iterator. |
Value |
getAccumulatorValue()
Get the current state of the accumulator. |
boolean |
hasCurrent()
Return true if the iterators have a step to be evaluated. |
NullValue |
throwInvalidEvaluation(java.lang.String message,
java.lang.Object... bindings)
|
Value |
updateBody()
Evaluate the iteration body for the current iterators and update the accumulator accordingly. |
Methods inherited from class org.eclipse.ocl.examples.domain.library.AbstractIterationManager |
---|
createNestedIterationManager, getValueFactory, isOuterIteration, throwInvalidEvaluation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DomainType returnType
protected final LibraryBinaryOperation body
protected final java.util.Iterator<Value> iteratorValue
Constructor Detail |
---|
public ExecutorSingleIterationManager(DomainEvaluator evaluator, DomainType returnType, LibraryBinaryOperation body, CollectionValue collectionValue, Value accumulatorValue)
Method Detail |
---|
public boolean advanceIterators()
DomainIterationManager
public Value get()
DomainIterationManager
get
in interface DomainIterationManager
get
in class AbstractIterationManager
public Value getAccumulatorValue()
DomainIterationManager
public Value evaluateBody()
DomainIterationManager
public boolean hasCurrent()
DomainIterationManager
public NullValue throwInvalidEvaluation(java.lang.String message, java.lang.Object... bindings) throws InvalidEvaluationException
InvalidEvaluationException
public Value updateBody() throws InvalidValueException
DomainIterationManager
InvalidValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |