Package io.github.fastclasspathscanner
Class TypeParameter
- java.lang.Object
-
- io.github.fastclasspathscanner.HierarchicalTypeSignature
-
- io.github.fastclasspathscanner.TypeParameter
-
public class TypeParameter extends HierarchicalTypeSignature
A type parameter.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResult
scanResult
-
Constructor Summary
Constructors Constructor Description TypeParameter(String identifier, ReferenceTypeSignature classBound, List<ReferenceTypeSignature> interfaceBounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ReferenceTypeSignature
getClassBound()
Get the type parameter class bound.protected ClassInfo
getClassInfo()
protected String
getClassName()
void
getClassNamesFromTypeDescriptors(Set<String> classNameListOut)
String
getIdentifier()
Get the type parameter identifier.List<ReferenceTypeSignature>
getInterfaceBounds()
Get the type parameter interface bound(s).int
hashCode()
String
toString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Constructor Detail
-
TypeParameter
public TypeParameter(String identifier, ReferenceTypeSignature classBound, List<ReferenceTypeSignature> interfaceBounds)
- Parameters:
identifier
- The type parameter identifier.classBound
- The type parameter class bound.interfaceBounds
- The type parameter interface bound.
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
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 List<ReferenceTypeSignature> getInterfaceBounds()
Get the type parameter interface bound(s).- Returns:
- Get the type parameter interface bound(s), which may be the empty list.
-
getClassNamesFromTypeDescriptors
public void getClassNamesFromTypeDescriptors(Set<String> classNameListOut)
-
getClassName
protected String getClassName()
-
getClassInfo
protected ClassInfo getClassInfo()
-
-