Class StringOperations.CaseChange
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.StringOperations.CaseChange
- All Implemented Interfaces:
IOperationEvaluator
- Enclosing class:
StringOperations
Implements the case change operations.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCaseChange(boolean toUpper) Creates a case change evaluator. -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EvaluationAccessor operand, EvaluationAccessor[] arguments) Evaluates an operation.
-
Field Details
-
toUpper
private boolean toUpper
-
-
Constructor Details
-
CaseChange
private CaseChange(boolean toUpper) Creates a case change evaluator.- Parameters:
toUpper- apply to upper case change (true) or to lower case change (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)
-