Package proguard.util
Class ClassPoolFeatureNameFunction
- java.lang.Object
-
- proguard.util.ClassPoolFeatureNameFunction
-
- All Implemented Interfaces:
StringFunction
public class ClassPoolFeatureNameFunction extends java.lang.Object implements StringFunction
This StringFunction transforms class names to feature names, based on a given class pool.
-
-
Field Summary
-
Fields inherited from interface proguard.util.StringFunction
IDENTITY_FUNCTION
-
-
Constructor Summary
Constructors Constructor Description ClassPoolFeatureNameFunction(ClassPool classPool)
Creates a new ClassPoolNameFunction based on the given class pool.ClassPoolFeatureNameFunction(ClassPool classPool, java.lang.String defaultFeatureName)
Creates a new ClassPoolNameFunction based on the given class pool, with a default string for classes that are not in the class 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
-
ClassPoolFeatureNameFunction
public ClassPoolFeatureNameFunction(ClassPool classPool)
Creates a new ClassPoolNameFunction based on the given class pool.
-
ClassPoolFeatureNameFunction
public ClassPoolFeatureNameFunction(ClassPool classPool, java.lang.String defaultFeatureName)
Creates a new ClassPoolNameFunction based on the given class pool, with a default string for classes that are not in the class 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
-
-