Package io.github.classgraph
Class TypeSignature
java.lang.Object
io.github.classgraph.HierarchicalTypeSignature
io.github.classgraph.TypeSignature
- Direct Known Subclasses:
BaseTypeSignature
,ReferenceTypeSignature
A type signature for a reference type or base type. Subclasses are
ReferenceTypeSignature
(whose own
subclasses are ClassRefTypeSignature
, TypeVariableSignature
, and ArrayTypeSignature
), and
BaseTypeSignature
.-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Compare base types, ignoring generic type parameters.Get a list ofAnnotationInfo
objects for any type annotations on this type, or null if none.toString()
Render to string.Render to string, using only simple names for classes.
-
Method Details
-
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
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
Render to string, using only simple names for classes.- Returns:
- the string representation, using simple names for classes.
-
toString
Render to string.
-