Package io.github.fastclasspathscanner
Class ArrayTypeSignature
- java.lang.Object
-
- io.github.fastclasspathscanner.HierarchicalTypeSignature
-
- io.github.fastclasspathscanner.TypeSignature
-
- io.github.fastclasspathscanner.ReferenceTypeSignature
-
- io.github.fastclasspathscanner.ArrayTypeSignature
-
public class ArrayTypeSignature extends ReferenceTypeSignature
An array type.
-
-
Field Summary
Fields Modifier and Type Field Description protected ScanResultscanResult
-
Constructor Summary
Constructors Constructor Description ArrayTypeSignature(TypeSignature elementTypeSignature, int numDims)
-
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.protected ClassInfogetClassInfo()protected StringgetClassName()TypeSignaturegetElementTypeSignature()Get the type signature of the array elements.intgetNumDimensions()Get the number of dimensions of the array.inthashCode()StringtoString()
-
-
-
Field Detail
-
scanResult
protected transient ScanResult scanResult
-
-
Constructor Detail
-
ArrayTypeSignature
public ArrayTypeSignature(TypeSignature elementTypeSignature, int numDims)
- Parameters:
elementTypeSignature- The type signature of the array elements.numDims- 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.
-
getNumDimensions
public int getNumDimensions()
Get the number of dimensions of the array.- Returns:
- The number of dimensions of the array.
-
getClassName
protected String getClassName()
-
getClassInfo
protected ClassInfo getClassInfo()
-
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.
-
-