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 ScanResult
scanResult
-
Constructor Summary
Constructors Constructor Description ArrayTypeSignature(TypeSignature elementTypeSignature, int numDims)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.protected ClassInfo
getClassInfo()
protected String
getClassName()
TypeSignature
getElementTypeSignature()
Get the type signature of the array elements.int
getNumDimensions()
Get the number of dimensions of the array.int
hashCode()
String
toString()
-
-
-
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:TypeSignature
Compare base types, ignoring generic type parameters.- Specified by:
equalsIgnoringTypeParams
in classTypeSignature
- Parameters:
other
- the otherTypeSignature
to compare to.- Returns:
- True if the two
TypeSignature
objects are equal, ignoring type parameters.
-
-