org.eclipse.ocl.examples.domain.library
Interface LibraryTernaryOperation

All Superinterfaces:
LibraryFeature, LibraryOperation
All Known Subinterfaces:
LibrarySimpleTernaryOperation, LibraryUntypedTernaryOperation
All Known Implementing Classes:
AbstractPolyOperation, AbstractSimpleTernaryOperation, AbstractTernaryOperation, AbstractUntypedTernaryOperation, OclAnyOclLogOperation, OrderedCollectionInsertAtOperation, OrderedSetSubOrderedSetOperation, SequenceSubSequenceOperation, StringReplaceAllOperation, StringReplaceFirstOperation, StringSubstituteAllOperation, StringSubstituteFirstOperation, StringSubstringOperation, StringTokenizeOperation

public interface LibraryTernaryOperation
extends LibraryOperation

LibraryTernaryOperation defines the invocation API of a ternary operation using
either an evaluator call expression, source and argument array
or an evaluator return type id and arguments.


Method Summary
 java.lang.Object evaluate(DomainEvaluator evaluator, TypeId returnTypeId, java.lang.Object sourceValue, java.lang.Object firstArgumentValue, java.lang.Object secondArgumentValue)
          Return the result of evaluating the operation on source with arg1 and arg2.
 
Methods inherited from interface org.eclipse.ocl.examples.domain.library.LibraryOperation
dispatch
 

Method Detail

evaluate

@Nullable
java.lang.Object evaluate(@NonNull
                                   DomainEvaluator evaluator,
                                   @NonNull
                                   TypeId returnTypeId,
                                   @Nullable
                                   java.lang.Object sourceValue,
                                   @Nullable
                                   java.lang.Object firstArgumentValue,
                                   @Nullable
                                   java.lang.Object secondArgumentValue)
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.