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 | Field and Description |
|---|---|
protected java.lang.Class<?> |
classRef
The class ref, once the class is loaded.
|
protected ScanResult |
scanResult
The scan result.
|
classfileResource, isExternalClass, isScannedClass, name, typeSignatureStr| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Use class name for equals().
|
protected void |
findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo,
java.util.Set<ClassInfo> refdClassInfo,
LogNode log)
Get
ClassInfo objects for any classes referenced in the type descriptor or type signature. |
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.
|
java.lang.String |
getTypeSignatureStr()
Get the raw type signature string of the array class, e.g.
|
int |
hashCode()
Use hash code of class name.
|
java.lang.Class<?> |
loadClass()
Obtain a {@code Class
|
java.lang.Class<?> |
loadClass(boolean ignoreExceptions)
Obtain a {@code Class
|
java.lang.Class<?> |
loadElementClass()
Get a {@code Class
|
java.lang.Class<?> |
loadElementClass(boolean ignoreExceptions)
Get a {@code Class
|
java.lang.String |
toString()
Render to string.
|
java.lang.String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
compareTo, extendsSuperclass, extendsSuperclass, getAnnotationDefaultParameterValues, getAnnotationInfo, getAnnotationInfo, getAnnotationInfo, getAnnotationInfoRepeatable, getAnnotationInfoRepeatable, getAnnotations, getClassDependencies, getClassesImplementing, getClassesWithAnnotation, getClassesWithFieldAnnotation, getClassesWithMethodAnnotation, getClassesWithMethodParameterAnnotation, getClassfileMajorVersion, getClassfileMinorVersion, getClassInfo, getClassName, getClasspathElementFile, getClasspathElementURI, getClasspathElementURL, getConstructorInfo, getDeclaredConstructorInfo, getDeclaredFieldInfo, getDeclaredFieldInfo, getDeclaredMethodAndConstructorInfo, getDeclaredMethodInfo, getDeclaredMethodInfo, getEnumConstantObjects, getEnumConstants, 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, hasAnnotation, hasDeclaredField, hasDeclaredFieldAnnotation, hasDeclaredFieldAnnotation, hasDeclaredMethod, hasDeclaredMethodAnnotation, hasDeclaredMethodAnnotation, hasDeclaredMethodParameterAnnotation, hasDeclaredMethodParameterAnnotation, hasField, hasFieldAnnotation, hasFieldAnnotation, hasMethod, hasMethodAnnotation, hasMethodAnnotation, hasMethodParameterAnnotation, hasMethodParameterAnnotation, implementsInterface, implementsInterface, isAbstract, isAnnotation, isAnonymousInnerClass, isArrayClass, isEnum, isExternalClass, isFinal, isImplementedInterface, isInnerClass, isInterface, isInterfaceOrAnnotation, isOuterClass, isPrivate, isProtected, isPublic, isRecord, isStandardClass, isStatic, isSynthetic, loadClass, loadClass, toStringprotected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
public java.lang.String getTypeSignatureStr()
getTypeSignatureStr in class ClassInfopublic ClassTypeSignature getTypeSignature()
getArrayTypeSignature()
instead.getTypeSignature in class ClassInfopublic 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 java.lang.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 java.lang.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 java.lang.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 ClassInfoignoreExceptions - Whether or not to ignore exceptionsjava.lang.IllegalArgumentException - if ignoreExceptions is false and there were problems loading the class.public java.lang.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.protected void findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Set<ClassInfo> refdClassInfo, LogNode log)
ClassInfo objects for any classes referenced in the type descriptor or type signature.findReferencedClassInfo in class ClassInfoclassNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class infolog - the logpublic boolean equals(java.lang.Object obj)
ClassInfopublic int hashCode()
ClassInfopublic java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object