Class ClassTypeSignature

java.lang.Object
io.github.classgraph.HierarchicalTypeSignature
io.github.classgraph.ClassTypeSignature

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

    • getTypeParameters

      public 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 List<ClassRefTypeSignature> getSuperinterfaceSignatures()
      Get the type signatures of any superinterfaces.
      Returns:
      The type signatures of any superinterfaces.
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toStringWithSimpleNames

      public String toStringWithSimpleNames()
      Render to string, using only simple names for classes.
      Returns:
      the string representation, using simple names for classes.
    • toString

      public String toString()
      Render to string.
      Overrides:
      toString in class Object
      Returns:
      the string representation.