Class TypeParameter
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.typesignature.HierarchicalTypeSignature
-
- io.github.lukehutch.fastclasspathscanner.typesignature.TypeParameter
-
public class TypeParameter extends HierarchicalTypeSignature
A type parameter.
-
-
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 booleanequals(Object obj)voidgetAllReferencedClassNames(Set<String> classNameListOut)Get the names of all classes referenced in the type signatureReferenceTypeSignaturegetClassBound()Get the type parameter class bound.StringgetIdentifier()Get the type parameter identifier.List<ReferenceTypeSignature>getInterfaceBounds()Get the type parameter interface bound(s).inthashCode()StringtoString()
-
-
-
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.
-
getAllReferencedClassNames
public void getAllReferencedClassNames(Set<String> classNameListOut)
Description copied from class:HierarchicalTypeSignatureGet the names of all classes referenced in the type signature- Specified by:
getAllReferencedClassNamesin classHierarchicalTypeSignature- Parameters:
classNameListOut- The set to store class names in.
-
-