Package proguard.resources.file.util
Class FilePoolNameFunction
- java.lang.Object
-
- proguard.resources.file.util.FilePoolNameFunction
-
- All Implemented Interfaces:
StringFunction
- Direct Known Subclasses:
ResourceFilePoolNameFunction
public class FilePoolNameFunction extends java.lang.Object implements StringFunction
ThisStringFunction
maps resource file names on their (obfuscated) resource file name, as present on theResourceFile
object in the given resource file pool.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description FilePoolNameFunction(FilePool filePool)
Creates a new ResourceFileNameFunction based on the given resource file pool.FilePoolNameFunction(FilePool filePool, java.lang.String defaultResourceFileName)
Creates a new ResourceFileNameFunction based on the given resource file pool, with a default string for resource files that are not in the resource file pool.
-
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
-
FilePoolNameFunction
public FilePoolNameFunction(FilePool filePool)
Creates a new ResourceFileNameFunction based on the given resource file pool.
-
FilePoolNameFunction
public FilePoolNameFunction(FilePool filePool, java.lang.String defaultResourceFileName)
Creates a new ResourceFileNameFunction based on the given resource file pool, with a default string for resource files that are not in the resource file pool.
-
-
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
-
-