Package proguard.util
Class MatchingStringFunction
- java.lang.Object
-
- proguard.util.MatchingStringFunction
-
- All Implemented Interfaces:
StringFunction
public class MatchingStringFunction extends java.lang.Object implements StringFunction
ThisStringFunction
returns unchanged strings or null, depending on whether a given string matcher matches the strings. It can be seen as an adapter fromStringMatcher
orStringFunction
.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description MatchingStringFunction(StringMatcher stringMatcher)
Creates a new MatchingStringFunction with the given string matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
transform(java.lang.String string)
Transforms the given string into a new string.
-
-
-
Constructor Detail
-
MatchingStringFunction
public MatchingStringFunction(StringMatcher stringMatcher)
Creates a new MatchingStringFunction with the given string matcher.
-
-
Method Detail
-
transform
public java.lang.String transform(java.lang.String string)
Description copied from interface:StringFunction
Transforms the given string into a new string.- Specified by:
transform
in interfaceStringFunction
-
-