Class ArrayTypeSignature
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.typesignature.HierarchicalTypeSignature
-
- io.github.lukehutch.fastclasspathscanner.typesignature.TypeSignature
-
- io.github.lukehutch.fastclasspathscanner.typesignature.ReferenceTypeSignature
-
- io.github.lukehutch.fastclasspathscanner.typesignature.ArrayTypeSignature
-
public class ArrayTypeSignature extends ReferenceTypeSignature
An array type.
-
-
Constructor Summary
Constructors Constructor Description ArrayTypeSignature(TypeSignature elementTypeSignature, int numArrayDims)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleanequalsIgnoringTypeParams(TypeSignature other)Compare base types, ignoring generic type parameters.voidgetAllReferencedClassNames(Set<String> classNameListOut)Get the names of all classes referenced in the type signatureTypeSignaturegetElementTypeSignature()Get the type signature of the array elements.intgetNumArrayDims()Get the number of dimensions of the array.inthashCode()Class<?>instantiate(ScanResult scanResult)Instantiate the type signature into a class reference.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from class io.github.lukehutch.fastclasspathscanner.typesignature.TypeSignature
parse
-
-
-
-
Constructor Detail
-
ArrayTypeSignature
public ArrayTypeSignature(TypeSignature elementTypeSignature, int numArrayDims)
- Parameters:
elementTypeSignature- The type signature of the array elements.numArrayDims- The number of array dimensions.
-
-
Method Detail
-
getElementTypeSignature
public TypeSignature getElementTypeSignature()
Get the type signature of the array elements.- Returns:
- The type signature of the array elements.
-
getNumArrayDims
public int getNumArrayDims()
Get the number of dimensions of the array.- Returns:
- The number of dimensions of the array.
-
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.
-
instantiate
public Class<?> instantiate(ScanResult scanResult)
Description copied from class:TypeSignatureInstantiate the type signature into a class reference. The ScanResult is used to ensure the correct classloader is used to load the class.- Specified by:
instantiatein classTypeSignature- Parameters:
scanResult- The scan result.- Returns:
- The instantiation of the type signature as a
Class<?>.
-
equalsIgnoringTypeParams
public boolean equalsIgnoringTypeParams(TypeSignature other)
Description copied from class:TypeSignatureCompare base types, ignoring generic type parameters.- Specified by:
equalsIgnoringTypeParamsin classTypeSignature- Parameters:
other- the otherTypeSignatureto compare to.- Returns:
- True if the two
TypeSignatureobjects are equal, ignoring type parameters.
-
-