Class ClassSignature

java.lang.Object
proguard.classfile.Signature
proguard.classfile.ClassSignature
All Implemented Interfaces:
Comparable<Signature>

public class ClassSignature extends Signature
Represents the signature of a class without any member information.
  • Constructor Details

    • ClassSignature

      public ClassSignature(String className)
    • ClassSignature

      public ClassSignature(Clazz clazz)
  • Method Details

    • isIncomplete

      public boolean isIncomplete()
      Description copied from class: Signature
      Check if this signature is missing information.
      Specified by:
      isIncomplete in class Signature
    • calculateFqn

      protected String calculateFqn()
      Specified by:
      calculateFqn in class Signature
    • calculatePrettyFqn

      protected String calculatePrettyFqn()
      Specified by:
      calculatePrettyFqn in class Signature
    • clearCache

      public static void clearCache()
      Remove all currently cached ClassSignature objects from the cache, allowing them to be removed by the garbage collector.
    • computeIfAbsent

      public static ClassSignature computeIfAbsent(Clazz clazz)
      Get the singleton ClassSignature object for this specific Clazz. If it is not yet available in the cache, it will be newly instantiated.
      Parameters:
      clazz - The class containing the target field
      Returns:
      The cached or newly generated ClassSignature object