Package proguard.util
Class MapStringFunction
java.lang.Object
proguard.util.MapStringFunction
- All Implemented Interfaces:
StringFunction
This
StringFunction gets its transformed strings from a given map.-
Field Summary
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION -
Constructor Summary
ConstructorsConstructorDescriptionMapStringFunction(Map map) Creates a new MapStringFunction based on the given map.MapStringFunction(Map map, String defaultString) Creates a new MapStringFunction based on the given map, with a default string for strings that are not in the map. -
Method Summary
-
Constructor Details
-
MapStringFunction
Creates a new MapStringFunction based on the given map. -
MapStringFunction
Creates a new MapStringFunction based on the given map, with a default string for strings that are not in the map.
-
-
Method Details
-
transform
Description copied from interface:StringFunctionTransforms the given string into a new string.- Specified by:
transformin interfaceStringFunction
-