Class ContainerOperations.IsEmptyOperationEvaluator
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.ContainerOperations.IsEmptyOperationEvaluator
- All Implemented Interfaces:
IOperationEvaluator
- Enclosing class:
ContainerOperations
static final class ContainerOperations.IsEmptyOperationEvaluator
extends Object
implements IOperationEvaluator
Implements the "isEmpty"/"notEmpty" function.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIsEmptyOperationEvaluator(boolean negate) Creates a find operation evaluator. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvaluationAccessor operand, EvaluationAccessor[] arguments) Evaluates an operation.
-
Field Details
-
negate
private boolean negate
-
-
Constructor Details
-
IsEmptyOperationEvaluator
public IsEmptyOperationEvaluator(boolean negate) Creates a find operation evaluator.- Parameters:
negate- negate the result ("notEmpty") or use the derived result ("isEmpty")
-
-
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)
-