Class BooleanOperations.BinaryOperationEvaluator
- java.lang.Object
-
- net.ssehub.easy.varModel.cstEvaluation.BooleanOperations.BinaryOperationEvaluator
-
- All Implemented Interfaces:
IOperationEvaluator
- Enclosing class:
- BooleanOperations
private static class BooleanOperations.BinaryOperationEvaluator extends java.lang.Object implements IOperationEvaluator
Generically implements binary Boolean operations.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanOperations.BinaryBooleanOperationop
-
Constructor Summary
Constructors Modifier Constructor Description privateBinaryOperationEvaluator(BooleanOperations.BinaryBooleanOperation op)Creates a binary operation evaluator based on a binary boolean operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluationAccessorevaluate(EvaluationAccessor operand, EvaluationAccessor[] arguments)Evaluates an operation.
-
-
-
Field Detail
-
op
private BooleanOperations.BinaryBooleanOperation op
-
-
Constructor Detail
-
BinaryOperationEvaluator
private BinaryOperationEvaluator(BooleanOperations.BinaryBooleanOperation op)
Creates a binary operation evaluator based on a binary boolean operation.- Parameters:
op- the operation to evaluate
-
-
Method Detail
-
evaluate
public EvaluationAccessor evaluate(EvaluationAccessor operand, EvaluationAccessor[] arguments)
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)
-
-