Class StringCompatibilityOperationContributor
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
org.eclipse.epsilon.eol.execute.operations.contributors.compatibility.StringCompatibilityOperationContributor
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
cachedMethodNames
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharacterAt
(int index) Java charAt returns a 'char': keep it for backwards compatibility (e.g.boolean
contributesTo
(Object target) protected String
In the previous version of EOL, EolString.replace mapped to String.replaceAll.replaceLiteral
(String lit, String replacement) Methods inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
close, findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, includeInheritedMethods, setContext, setTarget
-
Constructor Details
-
StringCompatibilityOperationContributor
public StringCompatibilityOperationContributor()
-
-
Method Details
-
contributesTo
- Specified by:
contributesTo
in classOperationContributor
-
getTarget
- Overrides:
getTarget
in classOperationContributor
- Returns:
- The
OperationContributor.target
field.
-
replace
In the previous version of EOL, EolString.replace mapped to String.replaceAll.- Parameters:
regex
-replacement
-- Returns:
-
replaceLiteral
- Parameters:
lit
- The String to replace.replacement
- The substitute String.- Returns:
String.replace(CharSequence, CharSequence)
- Since:
- 1.6
-
characterAt
Java charAt returns a 'char': keep it for backwards compatibility (e.g. Ecore2Thrift needs it), but also provide a 'characterAt' EOL version since EOL does not have that primitive type.
-