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
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.AnnotationInfoList
getTypeAnnotationInfo()
Get a list ofAnnotationInfo
objects for any type annotations on this type, or null if none.String
toString()
Render to string.String
toStringWithSimpleNames()
Render to string, using only simple names for classes.
-
-
-
Method Detail
-
getTypeAnnotationInfo
public AnnotationInfoList getTypeAnnotationInfo()
Get a list ofAnnotationInfo
objects for any type annotations on this type, or null if none.- Overrides:
getTypeAnnotationInfo
in classHierarchicalTypeSignature
- Returns:
- a list of
AnnotationInfo
objects for any type annotations on this type, or null if none.
-
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.
-
toStringWithSimpleNames
public String toStringWithSimpleNames()
Render to string, using only simple names for classes.- Returns:
- the string representation, using simple names for classes.
-
-