org.eclipse.ocl.examples.library
Interface LibraryIteration

All Superinterfaces:
CallableImplementation, LibraryFeature
All Known Implementing Classes:
AbstractIteration, AnyIteration, ClosureIteration, CollectIteration, CollectNestedIteration, ExistsIteration, ForAllIteration, IsUniqueIteration, IterateIteration, OneIteration, RejectIteration, SelectIteration, SortedByIteration

public interface LibraryIteration
extends LibraryFeature

Since:
3.1

Method Summary
 Value evaluate(EvaluationVisitor evaluationVisitor, CollectionValue sourceVal, LoopExp iterationCall)
          Return the result of evaluating iterationCall upon sourceVal within the environment provided by EvaluationVisitor.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.evaluation.CallableImplementation
evaluate, validate
 

Method Detail

evaluate

Value evaluate(EvaluationVisitor evaluationVisitor,
               CollectionValue sourceVal,
               LoopExp iterationCall)
               throws InvalidEvaluationException,
                      InvalidValueException
Return the result of evaluating iterationCall upon sourceVal within the environment provided by EvaluationVisitor. An invalid return may be indicated by throwing an exception returning Java null or OCL invalid.

Parameters:
evaluationVisitor - the evaluation context
sourceVal - the source operand for the operation
iterationCall - the iteration and additional arguments
Returns:
the evaluated value
Throws:
InvalidEvaluationException
InvalidValueException