Class StringOperations
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.StringOperations
Implements string operations.
- Author:
- Holger Eichelberger
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classImplements the case change operations.(package private) static classImplements the string compare operations. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final IOperationEvaluatorImplements the "at" operation.(package private) static final IOperationEvaluator(package private) static final IOperationEvaluatorImplements the "concat" operation.(package private) static final IOperationEvaluatorImplements the "equalsIgnoreCase" operation.(package private) static final IOperationEvaluatorImplements the "indexOf" operation.(package private) static final IOperationEvaluatorImplements the "matches" operation.(package private) static final IOperationEvaluatorImplements the "size" operation.(package private) static final IOperationEvaluatorImplements the "substitutes" operation.(package private) static final IOperationEvaluatorImplements the "substring" operation.(package private) static final IOperationEvaluatorImplements the "toBoolean" operation.(package private) static final IOperationEvaluatorImplements the "toInt" operation.(package private) static final IOperationEvaluatorImplements the "toReal" operation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanequalsIgnoreCase(String s1, String s2, EvaluationAccessor accessor) Compares two strings without considering cases using the locale given by the evaluationaccessor.private static booleanequalsIgnoreCase(String s1, String s2, EvaluationContext context) Compares two strings without considering cases using the locale given by the evaluationcontext.static final voidregister()Registers the defined operations.
-
Field Details
-
SIZE
Implements the "size" operation. -
TO_INT
Implements the "toInt" operation. -
TO_REAL
Implements the "toReal" operation. -
TO_BOOLEAN
Implements the "toBoolean" operation. -
EQUALS_IGNORE_CASE
Implements the "equalsIgnoreCase" operation. -
CONCAT
Implements the "concat" operation. -
SUBSTRING
Implements the "substring" operation. -
AT
Implements the "at" operation. -
INDEX_OF
Implements the "indexOf" operation. -
MATCHES
Implements the "matches" operation. -
CHARACTERS
-
SUBSTITUTES
Implements the "substitutes" operation.
-
-
Constructor Details
-
StringOperations
private StringOperations()Prevents external creation.
-
-
Method Details
-
equalsIgnoreCase
Compares two strings without considering cases using the locale given by the evaluationaccessor.- Parameters:
s1- the first strings2- the second stringaccessor- the evaluation accessor carrying the evaluation context / locale- Returns:
truefor equality,falseelse- See Also:
-
equalsIgnoreCase
Compares two strings without considering cases using the locale given by the evaluationcontext.- Parameters:
s1- the first strings2- the second stringcontext- the evaluation context carrying the locale- Returns:
truefor equality,falseelse
-
register
public static final void register()Registers the defined operations.
-