Class ContainerOperations.FlattenOperationEvaluator
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.ContainerOperations.FlattenOperationEvaluator
- All Implemented Interfaces:
IOperationEvaluator
- Enclosing class:
ContainerOperations
static final class ContainerOperations.FlattenOperationEvaluator
extends Object
implements IOperationEvaluator
Implements the "flattens" operation.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFlattenOperationEvaluator(boolean allowDuplicates) Creates a flatten operation evaluator. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvaluationAccessor operand, EvaluationAccessor[] arguments) Evaluates an operation.
-
Field Details
-
allowDuplicates
private boolean allowDuplicates
-
-
Constructor Details
-
FlattenOperationEvaluator
FlattenOperationEvaluator(boolean allowDuplicates) Creates a flatten operation evaluator.- Parameters:
allowDuplicates- allow duplicates (sequence,true) or not (set,false)
-
-
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)
-