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 are
ReferenceTypeSignature
(whose own
subclasses are ClassRefTypeSignature
, TypeVariableSignature
, and ArrayTypeSignature
), and
BaseTypeSignature
.-
Method Summary
Modifier and Type Method Description abstract boolean
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.String
toString()
toString()
method for type signature.String
toStringWithSimpleNames()
toString()
method, but returning simple names for classes (i.e.
-
Method Details
-
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
toString()
method, but returning simple names for classes (i.e. the package names of classes are stripped).- Returns:
- the string representation of the type signature, with package names stripped.
-
toString
toString()
method for type signature.
-