Class TypeArgument
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.typesignature.HierarchicalTypeSignature
-
- io.github.lukehutch.fastclasspathscanner.typesignature.TypeArgument
-
public class TypeArgument extends HierarchicalTypeSignature
A type argument.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeArgument.WILDCARDA type wildcard.
-
Constructor Summary
Constructors Constructor Description TypeArgument(TypeArgument.WILDCARD wildcard, ReferenceTypeSignature typeSignature)
-
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 signatureReferenceTypeSignaturegetTypeSignature()Get the type signature associated with the wildcard (or null, if the wildcard is ANY).TypeArgument.WILDCARDgetWildcard()Get the type wildcard, which is one of {NONE, ANY, EXTENDS, SUPER}.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
TypeArgument
public TypeArgument(TypeArgument.WILDCARD wildcard, ReferenceTypeSignature typeSignature)
- Parameters:
wildcard- The wildcard typetypeSignature- The type signature
-
-
Method Detail
-
getWildcard
public TypeArgument.WILDCARD getWildcard()
Get the type wildcard, which is one of {NONE, ANY, EXTENDS, SUPER}.- Returns:
- The type wildcard.
-
getTypeSignature
public ReferenceTypeSignature getTypeSignature()
Get the type signature associated with the wildcard (or null, if the wildcard is ANY).- Returns:
- The type signature.
-
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.
-
-