public class BaseTypeSignature extends TypeSignature
| 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 to this type.
|
boolean |
equals(java.lang.Object obj) |
boolean |
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.
|
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). |
java.lang.Class<?> |
getType()
Get the type.
|
char |
getTypeSignatureChar()
Get the type signature char used to represent the type, e.g.
|
java.lang.String |
getTypeStr()
Get the name of the type as a string.
|
int |
hashCode() |
java.lang.String |
toString()
Render to string.
|
protected 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.
|
findReferencedClassInfo, getTypeAnnotationInfoaddTypeAnnotation, toStringprotected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
public char getTypeSignatureChar()
public java.lang.String getTypeStr()
public java.lang.Class<?> getType()
protected void addTypeAnnotation(java.util.List<io.github.classgraph.Classfile.TypePathNode> typePath,
AnnotationInfo annotationInfo)
TypeSignatureaddTypeAnnotation in class TypeSignaturetypePath - The type path.annotationInfo - The annotation to add.protected 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)
findReferencedClassNames in class TypeSignaturerefdClassNames - the referenced class names.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignatureequalsIgnoringTypeParams in class TypeSignatureother - the other TypeSignature to compare to.TypeSignature objects are equal, ignoring type parameters.protected void toStringInternal(boolean useSimpleNames,
AnnotationInfoList annotationsToExclude,
java.lang.StringBuilder buf)
HierarchicalTypeSignaturetoStringInternal in class HierarchicalTypeSignatureuseSimpleNames - 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.public java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object