org.eclipse.ocl.examples.library
Interface LibraryTernaryOperation

All Superinterfaces:
CallableImplementation, LibraryFeature, LibraryOperation
All Known Implementing Classes:
AbstractTernaryOperation, OrderedCollectionInsertAtOperation, OrderedSetSubOrderedSetOperation, SequenceSubSequenceOperation, StringSubstringOperation

public interface LibraryTernaryOperation
extends LibraryOperation

Since:
3.1

Method Summary
 Value evaluate(ValueFactory valueFactory, Value source, Value arg1, Value arg2)
          Return the result of evaluating the operation on source with arg1 and arg2.
 
Methods inherited from interface org.eclipse.ocl.examples.library.LibraryOperation
evaluate
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.evaluation.CallableImplementation
evaluate, validate
 

Method Detail

evaluate

Value evaluate(ValueFactory valueFactory,
               Value source,
               Value arg1,
               Value arg2)
               throws InvalidValueException
Return the result of evaluating the operation on source with arg1 and arg2. An invalid return may be indicated by throwing an exception returning Java null or OCL invalid.

Parameters:
source - source argument
arg1 - first argument
arg2 - second argument
Returns:
the evaluated value
Throws:
InvalidValueException