|
||||||||||
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. |
void |
dispose()
|
java.lang.Object |
evaluateBody()
Evaluate the iteration body for the current iterators and return the evaluation result. |
java.lang.Object |
get()
Get the current state of the iterator. |
java.lang.Object |
getAccumulatorValue()
Get the current state of the accumulator. |
DomainEvaluator |
getEvaluator()
|
CollectionValue |
getSourceCollection()
Return the source collection over which this (nested) iteration iterates. |
DomainStandardLibrary |
getStandardLibrary()
|
boolean |
hasCurrent()
Return true if the iterators have a step to be evaluated. |
java.lang.Object |
updateAccumulator(java.lang.Object newValue)
Update the accumulator witrh the result of a body iteration. |
Method Detail |
---|
boolean advanceIterators()
@NonNull DomainIterationManager createNestedIterationManager(@NonNull CollectionValue value)
value
- the nested iteration domain
InvalidValueException
void dispose()
@Nullable java.lang.Object evaluateBody()
java.lang.Exception
@Nullable java.lang.Object get()
@Nullable java.lang.Object getAccumulatorValue()
@NonNull DomainEvaluator getEvaluator()
@NonNull CollectionValue getSourceCollection()
@NonNull DomainStandardLibrary getStandardLibrary()
boolean hasCurrent()
@Nullable java.lang.Object updateAccumulator(java.lang.Object newValue)
java.lang.Exception
InvalidValueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |