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 array elements.
|
int |
getNumDimensions()
Get the number of dimensions of the array.
|
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 array element type. |
toString, toStringWithSimpleNames
public String getTypeSignatureStr()
public TypeSignature getElementTypeSignature()
public int getNumDimensions()
public ArrayClassInfo getArrayClassInfo()
ArrayClassInfo
instance for the array class, cast to its superclass.ArrayClassInfo
instance.public Class<?> loadElementClass(boolean ignoreExceptions)
Class<?>
reference for the array element type. Causes the ClassLoader to load the element
class, if it is not already loaded.ignoreExceptions
- Whether or not to ignore exceptions.Class<?>
reference for the 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.Copyright © 2020. All rights reserved.