|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DomainIterationManager
DomainIterationManager defines the supervisor for an iteration. It provides a body, one or more iterators and an accumulator, which may be updated by evaluating the body.
Method Summary | |
---|---|
boolean |
advanceIterators()
Advance the iterators to the next iteration, returning false once all possible iterator states have been exhausted. |
DomainIterationManager |
createNestedIterationManager(CollectionValue value)
Create a nested iteration supervisor. |
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. |
ValueFactory |
getValueFactory()
Get the factory for values. |
boolean |
hasCurrent()
Return true if the iterators have a step to be evaluated. |
boolean |
isOuterIteration()
Get the current iteration depth. |
NullValue |
throwInvalidEvaluation(InvalidValueException e)
|
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. |
Method Detail |
---|
boolean advanceIterators()
DomainIterationManager createNestedIterationManager(CollectionValue value)
value
- the nested iteration domain
InvalidValueException
Value evaluateBody()
Value get()
Value getAccumulatorValue()
ValueFactory getValueFactory()
boolean hasCurrent()
boolean isOuterIteration()
NullValue throwInvalidEvaluation(java.lang.String message, java.lang.Object... bindings) throws InvalidEvaluationException
InvalidEvaluationException
NullValue throwInvalidEvaluation(InvalidValueException e)
Value updateBody() throws InvalidValueException
InvalidValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |