org.eclipse.ocl.examples.library.logical
Class BooleanAllInstancesOperation

java.lang.Object
  extended by org.eclipse.ocl.examples.library.AbstractFeature
      extended by org.eclipse.ocl.examples.library.AbstractOperation
          extended by org.eclipse.ocl.examples.library.logical.BooleanAllInstancesOperation
All Implemented Interfaces:
LibraryFeature, LibraryOperation, CallableImplementation

public class BooleanAllInstancesOperation
extends AbstractOperation

BooleanAllInstancesOperation realises the Boolean::allInstances() library operation.

Since:
3.1

Field Summary
static BooleanAllInstancesOperation INSTANCE
           
 
Constructor Summary
BooleanAllInstancesOperation()
           
 
Method Summary
 SetValue evaluate(EvaluationVisitor evaluationVisitor, Value sourceVal, OperationCallExp operationCall)
          Return the result of evaluating operationCall upon sourceVal within the environment provided by EvaluationVisitor.
 
Methods inherited from class org.eclipse.ocl.examples.library.AbstractOperation
evaluate, evaluateArgument, getNumArguments
 
Methods inherited from class org.eclipse.ocl.examples.library.AbstractFeature
validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.evaluation.CallableImplementation
validate
 

Field Detail

INSTANCE

public static final BooleanAllInstancesOperation INSTANCE
Constructor Detail

BooleanAllInstancesOperation

public BooleanAllInstancesOperation()
Method Detail

evaluate

public SetValue evaluate(EvaluationVisitor evaluationVisitor,
                         Value sourceVal,
                         OperationCallExp operationCall)
Description copied from interface: LibraryOperation
Return the result of evaluating operationCall 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
operationCall - the operation and additional arguments
Returns:
the evaluated value