Package proguard.util
Class SuffixRemovingStringFunction
java.lang.Object
proguard.util.SuffixRemovingStringFunction
- All Implemented Interfaces:
StringFunction
This
StringFunction removes a given suffix from each transformed String, if present.-
Field Summary
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION -
Constructor Summary
ConstructorsConstructorDescriptionSuffixRemovingStringFunction(String suffix) Creates a new SuffixRemovingStringFunction. -
Method Summary
-
Constructor Details
-
SuffixRemovingStringFunction
Creates a new SuffixRemovingStringFunction.- Parameters:
suffix- the suffix to remove from each string.
-
-
Method Details
-
transform
Description copied from interface:StringFunctionTransforms the given string into a new string.- Specified by:
transformin interfaceStringFunction
-