Package proguard.util
Class MatchingStringFunction
java.lang.Object
proguard.util.MatchingStringFunction
- All Implemented Interfaces:
StringFunction
This
StringFunction returns unchanged strings or null, depending on whether a given
string matcher matches the strings. It can be seen as an adapter from StringMatcher or
StringFunction.-
Field Summary
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION -
Constructor Summary
ConstructorsConstructorDescriptionMatchingStringFunction(StringMatcher stringMatcher) Creates a new MatchingStringFunction with the given string matcher. -
Method Summary
-
Constructor Details
-
MatchingStringFunction
Creates a new MatchingStringFunction with the given string matcher.
-
-
Method Details
-
transform
Description copied from interface:StringFunctionTransforms the given string into a new string.- Specified by:
transformin interfaceStringFunction
-