public abstract class TypeSignature extends HierarchicalTypeSignature
ReferenceTypeSignature (whose own
subclasses are ClassRefTypeSignature, TypeVariableSignature, and ArrayTypeSignature), and
BaseTypeSignature.| 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 | Constructor and Description |
|---|---|
protected |
TypeSignature()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
Add a type annotation to this type.
|
abstract boolean |
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.
|
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 signature. |
protected void |
findReferencedClassNames(java.util.Set<java.lang.String> refdClassNames)
Get the names of any classes referenced in the type signature.
|
protected abstract java.lang.String |
getClassName()
The name of the class (used by
getClassInfo() to fetch the ClassInfo object for the class). |
AnnotationInfoList |
getTypeAnnotationInfo()
Get a list of
AnnotationInfo objects for any type annotations on this type, or null if none. |
java.lang.String |
toString()
Render to string.
|
java.lang.String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
addTypeAnnotation, toString, toStringInternalprotected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
protected void findReferencedClassNames(java.util.Set<java.lang.String> refdClassNames)
refdClassNames - the referenced class names.protected final 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 signature.classNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class info.log - the logpublic AnnotationInfoList getTypeAnnotationInfo()
AnnotationInfo objects for any type annotations on this type, or null if none.AnnotationInfo objects for any type annotations on this type, or null if none.public abstract boolean equalsIgnoringTypeParams(TypeSignature other)
other - the other TypeSignature to compare to.TypeSignature objects are equal, ignoring type parameters.protected abstract void addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
addTypeAnnotation in class HierarchicalTypeSignaturetypePath - The type path.annotationInfo - The annotation to add.protected 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