Class FieldSignature

  • All Implemented Interfaces:
    java.lang.Comparable<Signature>

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

      • memberName

        public final java.lang.String memberName
      • descriptor

        public final java.lang.String descriptor
    • Constructor Detail

      • FieldSignature

        public FieldSignature​(java.lang.String clazzName,
                              java.lang.String memberName,
                              java.lang.String descriptor)
      • FieldSignature

        public FieldSignature​(Clazz clazz,
                              Field field)
    • Method Detail

      • isIncomplete

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

        protected java.lang.String calculateFqn()
        Specified by:
        calculateFqn 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​(java.lang.Object o)
        Overrides:
        equals in class Signature