Package proguard.util
Class FilteredStringFunction
- java.lang.Object
-
- proguard.util.FilteredStringFunction
-
- All Implemented Interfaces:
StringFunction
public class FilteredStringFunction extends java.lang.Object implements StringFunction
ThisStringFunction
delegates a given String to one of two otherStringFunction
instances, depending on whether it matches the given filter.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description FilteredStringFunction(java.lang.String nameFilter, StringFunction acceptedFunction, StringFunction rejectedFunction)
FilteredStringFunction(StringMatcher nameFilter, StringFunction acceptedFunction, StringFunction rejectedFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
transform(java.lang.String fileName)
Transforms the given string into a new string.
-
-
-
Constructor Detail
-
FilteredStringFunction
public FilteredStringFunction(StringMatcher nameFilter, StringFunction acceptedFunction, StringFunction rejectedFunction)
-
FilteredStringFunction
public FilteredStringFunction(java.lang.String nameFilter, StringFunction acceptedFunction, StringFunction rejectedFunction)
-
-
Method Detail
-
transform
public java.lang.String transform(java.lang.String fileName)
Description copied from interface:StringFunction
Transforms the given string into a new string.- Specified by:
transform
in interfaceStringFunction
-
-