Class ClassTypeSignature


  • public final class ClassTypeSignature
    extends HierarchicalTypeSignature
    A class type signature (called "ClassSignature" in the classfile documentation).
    • Field Detail

      • scanResult

        protected transient ScanResult scanResult
        The scan result.
      • classRef

        protected transient java.lang.Class<?> classRef
        The class ref, once the class is loaded.
    • Method Detail

      • getTypeParameters

        public java.util.List<TypeParameter> getTypeParameters()
        Get the type parameters for the class.
        Returns:
        The type parameters for the class.
      • getSuperclassSignature

        public ClassRefTypeSignature getSuperclassSignature()
        Get the type signature for the superclass (possibly null in the case of Object, since it doesn't have a superclass).
        Returns:
        The type signature for the superclass, or null if no superclass (i.e. for Object).
      • getSuperinterfaceSignatures

        public java.util.List<ClassRefTypeSignature> getSuperinterfaceSignatures()
        Get the type signatures of any superinterfaces.
        Returns:
        The type signatures of any superinterfaces.
      • getClassName

        protected java.lang.String getClassName()
        The name of the class (used by getClassInfo() to fetch the ClassInfo object for the class).
        Returns:
        The class name.
      • getClassInfo

        protected ClassInfo getClassInfo()
      • findReferencedClassNames

        protected void findReferencedClassNames​(java.util.Set<java.lang.String> refdClassNames)
        Get the names of any classes referenced in the type signature.
        Parameters:
        refdClassNames - the referenced class names.
      • findReferencedClassInfo

        protected void findReferencedClassInfo​(java.util.Map<java.lang.String,​ClassInfo> classNameToClassInfo,
                                               java.util.Set<ClassInfo> refdClassInfo)
        Get ClassInfo objects for any classes referenced in the type descriptor or type signature.
        Parameters:
        classNameToClassInfo - the map from class name to ClassInfo.
        refdClassInfo - the referenced class info
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object