Class EnumOperations.EnumComparisonOperation
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.EnumOperations.EnumComparisonOperation
- All Implemented Interfaces:
IOperationEvaluator
- Enclosing class:
EnumOperations
private static class EnumOperations.EnumComparisonOperation
extends Object
implements IOperationEvaluator
Implements the generic enum comparison operation based on
EnumOperations.BinaryEnumComparisonOperation.- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an operation instance parameterized by the given comparison operation. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvaluationAccessor operand, EvaluationAccessor[] arguments) Evaluates an operation.
-
Field Details
-
op
-
-
Constructor Details
-
EnumComparisonOperation
EnumComparisonOperation(EnumOperations.BinaryEnumComparisonOperation op) Creates an operation instance parameterized by the given comparison operation.- Parameters:
op- the operation to be performed
-
-
Method Details
-
evaluate
Description copied from interface:IOperationEvaluatorEvaluates an operation.- Specified by:
evaluatein interfaceIOperationEvaluator- Parameters:
operand- the operand valuearguments- the arguments to be used for the evaluation- Returns:
- the result of the operation (variable or value)
-