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 ScanResult
scanResult
-
Constructor Summary
Constructors Constructor Description TypeSignature()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract boolean
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.protected abstract String
getClassName()
The name of the class (used bygetClassInfo()
to fetch theClassInfo
object 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 otherTypeSignature
to compare to.- Returns:
- True if the two
TypeSignature
objects are equal, ignoring type parameters.
-
getClassName
protected abstract String getClassName()
The name of the class (used bygetClassInfo()
to fetch theClassInfo
object for the class).
-
-