public abstract class HierarchicalTypeSignature
extends java.lang.Object
| 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.
|
protected AnnotationInfoList |
typeAnnotationInfo |
| Constructor and Description |
|---|
HierarchicalTypeSignature() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTypeAnnotation(AnnotationInfo annotationInfo)
Add a type annotation.
|
protected abstract void |
addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
Add a type annotation.
|
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 by this object. |
protected abstract java.lang.String |
getClassName()
The name of the class (used by
getClassInfo() to fetch the ClassInfo object for the class). |
java.lang.String |
toString()
Render to string.
|
protected void |
toString(boolean useSimpleNames,
java.lang.StringBuilder buf)
Render type signature to string.
|
protected abstract void |
toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
Render type signature to string.
|
java.lang.String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
protected AnnotationInfoList typeAnnotationInfo
protected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
protected void addTypeAnnotation(AnnotationInfo annotationInfo)
annotationInfo - the annotationprotected abstract void addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
typePath - the type pathannotationInfo - the annotationprotected abstract void toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
useSimpleNames - whether to use simple names for classes.annotationsToExclude - toplevel annotations to exclude, to eliminate duplication (toplevel annotations are both
class/field/method annotations and type annotations).buf - the StringBuilder to write to.protected void toString(boolean useSimpleNames,
java.lang.StringBuilder buf)
useSimpleNames - whether to use simple names for classes.buf - the StringBuilder to write to.protected void findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Set<ClassInfo> refdClassInfo, LogNode log)
ClassInfo objects for any classes referenced by this object.classNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class infolog - the logprotected abstract java.lang.String getClassName()
getClassInfo() to fetch the ClassInfo object for the class).public java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object