public class ArrayClassInfo extends ClassInfo
ClassInfo
with additional methods relevant to
array classes, in particular getArrayTypeSignature()
, getTypeSignatureStr()
,
getElementTypeSignature()
, getElementClassInfo()
, loadElementClass()
, and
getNumDimensions()
.
An ArrayClassInfo
object will not have any methods, fields or annotations.
ClassInfo.isArrayClass()
will return true for this subclass of ClassInfo
.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Use class name for equals().
|
ArrayTypeSignature |
getArrayTypeSignature()
Get the type signature of the class.
|
ClassInfo |
getElementClassInfo()
Get the
ClassInfo instance for the array element type. |
TypeSignature |
getElementTypeSignature()
Get the type signature of the array elements.
|
int |
getNumDimensions()
Get the number of dimensions of the array.
|
ClassTypeSignature |
getTypeSignature()
Returns null, because array classes do not have a ClassTypeSignature.
|
String |
getTypeSignatureStr()
Get the raw type signature string of the array class, e.g.
|
int |
hashCode()
Use hash code of class name.
|
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. |
compareTo, extendsSuperclass, getAnnotationDefaultParameterValues, getAnnotationInfo, getAnnotationInfo, getAnnotationInfoRepeatable, getAnnotations, getClassDependencies, getClassesImplementing, getClassesWithAnnotation, getClassesWithFieldAnnotation, getClassesWithMethodAnnotation, getClassesWithMethodParameterAnnotation, getClasspathElementFile, getClasspathElementURI, getClasspathElementURL, getConstructorInfo, getDeclaredConstructorInfo, getDeclaredFieldInfo, getDeclaredFieldInfo, getDeclaredMethodAndConstructorInfo, getDeclaredMethodInfo, getDeclaredMethodInfo, getFieldAnnotations, getFieldInfo, getFieldInfo, getFullyQualifiedDefiningMethodName, getInnerClasses, getInterfaces, getMethodAndConstructorInfo, getMethodAnnotations, getMethodInfo, getMethodInfo, getMethodParameterAnnotations, getModifiers, getModifiersStr, getModuleInfo, getModuleRef, getName, getOuterClasses, getPackageInfo, getPackageName, getResource, getSimpleName, getSubclasses, getSuperclass, getSuperclasses, hasAnnotation, hasDeclaredField, hasDeclaredFieldAnnotation, hasDeclaredMethod, hasDeclaredMethodAnnotation, hasDeclaredMethodParameterAnnotation, hasField, hasFieldAnnotation, hasMethod, hasMethodAnnotation, hasMethodParameterAnnotation, implementsInterface, isAbstract, isAnnotation, isAnonymousInnerClass, isArrayClass, isEnum, isExternalClass, isFinal, isImplementedInterface, isInnerClass, isInterface, isInterfaceOrAnnotation, isOuterClass, isPublic, isRecord, isStandardClass, isStatic, isSynthetic, loadClass, loadClass, toString
public String getTypeSignatureStr()
getTypeSignatureStr
in class ClassInfo
public ClassTypeSignature getTypeSignature()
getArrayTypeSignature()
instead.getTypeSignature
in class ClassInfo
public ArrayTypeSignature getArrayTypeSignature()
public TypeSignature getElementTypeSignature()
public int getNumDimensions()
public ClassInfo getElementClassInfo()
ClassInfo
instance for the array element type.ClassInfo
instance for the array element type. Returns null if the element type was not
found during the scan. In particular, will return null for arrays that have a primitive element type.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.loadClass
in class ClassInfo
ignoreExceptions
- Whether or not to ignore exceptionsIllegalArgumentException
- 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.loadClass
in class ClassInfo
IllegalArgumentException
- if there were problems loading the class.public boolean equals(Object obj)
ClassInfo
Copyright © 2020. All rights reserved.