Package proguard.util

Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface StringFunction