Package io.github.classgraph
Class TypeSignature
- java.lang.Object
-
- io.github.classgraph.HierarchicalTypeSignature
-
- io.github.classgraph.TypeSignature
-
- Direct Known Subclasses:
BaseTypeSignature,ReferenceTypeSignature
public abstract class TypeSignature extends HierarchicalTypeSignature
A type signature for a reference type or base type. Subclasses areReferenceTypeSignature(whose own subclasses areClassRefTypeSignature,TypeVariableSignature, andArrayTypeSignature), andBaseTypeSignature.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResultscanResult
-
Constructor Summary
Constructors Constructor Description TypeSignature()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanequalsIgnoringTypeParams(TypeSignature other)Compare base types, ignoring generic type parameters.protected abstract StringgetClassName()The name of the class (used bygetClassInfo()to fetch theClassInfoobject for the class).
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Method Detail
-
equalsIgnoringTypeParams
public abstract boolean equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.- Parameters:
other- the otherTypeSignatureto compare to.- Returns:
- True if the two
TypeSignatureobjects are equal, ignoring type parameters.
-
getClassName
protected abstract String getClassName()
The name of the class (used bygetClassInfo()to fetch theClassInfoobject for the class).
-
-