Class ClassSignature

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

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

      • ClassSignature

        public ClassSignature​(java.lang.String className)
      • ClassSignature

        public ClassSignature​(Clazz clazz)
    • 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
      • 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