public final class ClassTypeSignature extends HierarchicalTypeSignature
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
classRef
The class ref, once the class is loaded.
|
protected ScanResult |
scanResult
The scan result.
|
typeAnnotationInfo| Modifier and Type | Method and Description |
|---|---|
protected void |
addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
Add a type annotation.
|
boolean |
equals(java.lang.Object obj) |
protected void |
findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo,
java.util.Set<ClassInfo> refdClassInfo,
LogNode log)
Get
ClassInfo objects for any classes referenced in the type descriptor or type signature. |
protected void |
findReferencedClassNames(java.util.Set<java.lang.String> refdClassNames)
Get the names of any classes referenced in the type signature.
|
protected ClassInfo |
getClassInfo()
Get the
ClassInfo object for the referenced class, or null if the referenced class was not
encountered during scanning (i.e. no ClassInfo object was created for the class during scanning). |
protected java.lang.String |
getClassName()
The name of the class (used by
getClassInfo() to fetch the ClassInfo object for the class). |
ClassRefTypeSignature |
getSuperclassSignature()
Get the type signature for the superclass (possibly null in the case of
Object, since it
doesn't have a superclass). |
java.util.List<ClassRefTypeSignature> |
getSuperinterfaceSignatures()
Get the type signatures of any superinterfaces.
|
java.util.List<TypeParameter> |
getTypeParameters()
Get the type parameters for the class.
|
int |
hashCode() |
java.lang.String |
toString()
Render to string.
|
protected void |
toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
To string internal.
|
java.lang.String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
addTypeAnnotation, toStringprotected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
public java.util.List<TypeParameter> getTypeParameters()
public ClassRefTypeSignature getSuperclassSignature()
Object, since it
doesn't have a superclass).Object).public java.util.List<ClassRefTypeSignature> getSuperinterfaceSignatures()
protected void addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
HierarchicalTypeSignatureaddTypeAnnotation in class HierarchicalTypeSignaturetypePath - the type pathannotationInfo - the annotationprotected java.lang.String getClassName()
getClassInfo() to fetch the ClassInfo object for the class).protected ClassInfo getClassInfo()
ClassInfo object for the referenced class, or null if the referenced class was not
encountered during scanning (i.e. no ClassInfo object was created for the class during scanning). N.B. even
if this method returns null, loadClass() may be able to load the referenced class by name.ClassInfo object for the referenced class.protected void findReferencedClassNames(java.util.Set<java.lang.String> refdClassNames)
refdClassNames - the referenced class names.protected void findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Set<ClassInfo> refdClassInfo, LogNode log)
ClassInfo objects for any classes referenced in the type descriptor or type signature.classNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class infolog - the logpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected void toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
toStringInternal in class HierarchicalTypeSignatureuseSimpleNames - the use simple namesannotationsToExclude - the annotations to excludebuf - the bufpublic java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object