Package io.github.classgraph
Class ClassTypeSignature
- java.lang.Object
-
- io.github.classgraph.HierarchicalTypeSignature
-
- io.github.classgraph.ClassTypeSignature
-
public class ClassTypeSignature extends HierarchicalTypeSignature
A class type signature (called "ClassSignature" in the classfile documentation).
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResult
scanResult
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
protected ClassInfo
getClassInfo()
protected java.lang.String
getClassName()
The name of the class (used bygetClassInfo()
to fetch theClassInfo
object for the class).ClassRefTypeSignature
getSuperclassSignature()
Get the type signature for the superclass (possibly null in the case ofObject
, since it doesn't have a superclass).java.util.List<ClassRefTypeSignature>
getSuperinterfaceSignatures()
Get the type signatures of any superinterfacesjava.util.List<TypeParameter>
getTypeParameters()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Method Detail
-
getTypeParameters
public java.util.List<TypeParameter> getTypeParameters()
- Returns:
- The type parameters for the class.
-
getSuperclassSignature
public ClassRefTypeSignature getSuperclassSignature()
Get the type signature for the superclass (possibly null in the case ofObject
, 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 bygetClassInfo()
to fetch theClassInfo
object for the class).- Returns:
- The class name.
-
getClassInfo
protected ClassInfo getClassInfo()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-