Class FieldSignature

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

public class FieldSignature extends Signature
Represents a field signature consisting of class and member name.
  • Field Details

    • memberName

      public final String memberName
    • descriptor

      public final String descriptor
  • Constructor Details

    • FieldSignature

      public FieldSignature(String clazzName, String memberName, String descriptor)
    • FieldSignature

      public FieldSignature(Clazz clazz, Field field)
  • 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
    • computeIfAbsent

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Signature