Package io.github.classgraph
Class TypeParameter
- java.lang.Object
-
- io.github.classgraph.HierarchicalTypeSignature
-
- io.github.classgraph.TypeParameter
-
public final class TypeParameter extends HierarchicalTypeSignature
A type parameter.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResult
scanResult
The scan result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
ReferenceTypeSignature
getClassBound()
Get the type parameter class bound.protected ClassInfo
getClassInfo()
protected java.lang.String
getClassName()
The name of the class (used bygetClassInfo()
to fetch theClassInfo
object for the class).java.util.List<ReferenceTypeSignature>
getInterfaceBounds()
Get the type parameter interface bound(s).java.lang.String
getName()
Get the type parameter identifier.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
The scan result.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the type parameter identifier.- Returns:
- The type parameter identifier.
-
getClassBound
public ReferenceTypeSignature getClassBound()
Get the type parameter class bound.- Returns:
- The type parameter class bound. May be null.
-
getInterfaceBounds
public java.util.List<ReferenceTypeSignature> getInterfaceBounds()
Get the type parameter interface bound(s).- Returns:
- Get the type parameter interface bound(s), which may be the empty list.
-
getClassName
protected java.lang.String getClassName()
The name of the class (used bygetClassInfo()
to fetch theClassInfo
object for the class).- Returns:
- The class name.
-
getClassInfo
protected ClassInfo getClassInfo()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-