public class ArrayTypeSignature extends ReferenceTypeSignature
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsIgnoringTypeParams(TypeSignature other)
Compare base types, ignoring generic type parameters.
|
ArrayClassInfo |
getArrayClassInfo()
Return an
ArrayClassInfo instance for the array class, cast to its superclass. |
TypeSignature |
getElementTypeSignature()
Get the type signature of the innermost element type of the array.
|
TypeSignature |
getNestedType()
Get the nested type, which is another
ArrayTypeSignature with one dimension fewer, if this array has
2 or more dimensions, otherwise this returns the element type. |
int |
getNumDimensions()
Get the number of dimensions of the array.
|
AnnotationInfoList |
getTypeAnnotationInfo()
Get a list of
AnnotationInfo objects for the type annotations on this array type, or null if none. |
String |
getTypeSignatureStr()
Get the raw array type signature string, e.g.
|
int |
hashCode() |
Class<?> |
loadClass()
Obtain a
Class<?> reference for the array class named by this ArrayClassInfo object. |
Class<?> |
loadClass(boolean ignoreExceptions)
Obtain a
Class<?> reference for the array class named by this ArrayClassInfo object. |
Class<?> |
loadElementClass()
Get a
Class<?> reference for the array element type. |
Class<?> |
loadElementClass(boolean ignoreExceptions)
Get a
Class<?> reference for the innermost array element type. |
String |
toString()
Render to string.
|
String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
public String getTypeSignatureStr()
public TypeSignature getElementTypeSignature()
public int getNumDimensions()
public TypeSignature getNestedType()
ArrayTypeSignature
with one dimension fewer, if this array has
2 or more dimensions, otherwise this returns the element type.public AnnotationInfoList getTypeAnnotationInfo()
AnnotationInfo
objects for the type annotations on this array type, or null if none.getTypeAnnotationInfo
in class TypeSignature
AnnotationInfo
objects for the type annotations of on this array type, or null if
none.if you want to read for type annotations on inner (nested) dimensions of the array
type.
public ArrayClassInfo getArrayClassInfo()
ArrayClassInfo
instance for the array class, cast to its superclass.ArrayClassInfo
instance.public Class<?> loadElementClass(boolean ignoreExceptions)
Class<?>
reference for the innermost array element type. Causes the ClassLoader to load the
class, if it is not already loaded.ignoreExceptions
- Whether or not to ignore exceptions.Class<?>
reference for the innermost array element type. Also works for arrays of primitive
element type.public Class<?> loadElementClass()
Class<?>
reference for the array element type. Causes the ClassLoader to load the element
class, if it is not already loaded.Class<?>
reference for the array element type. Also works for arrays of primitive element
type.public Class<?> loadClass(boolean ignoreExceptions)
Class<?>
reference for the array class named by this ArrayClassInfo
object. Causes
the ClassLoader to load the element class, if it is not already loaded.ignoreExceptions
- Whether or not to ignore exceptions.IllegalArgumentException
- if ignoreExceptions is false and there were problems loading the class.public Class<?> loadClass()
Class<?>
reference for the array class named by this ArrayClassInfo
object. Causes
the ClassLoader to load the element class, if it is not already loaded.IllegalArgumentException
- if there were problems loading the class.public boolean equalsIgnoringTypeParams(TypeSignature other)
TypeSignature
equalsIgnoringTypeParams
in class TypeSignature
other
- the other TypeSignature
to compare to.TypeSignature
objects are equal, ignoring type parameters.public String toStringWithSimpleNames()
Copyright © 2022. All rights reserved.