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 |
|---|---|
| private ArrayTypeSignature | arrayTypeSignature
The array type signature. |
| private ClassInfo | elementClassInfo
The element class info. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the other object obj)Overrides io. Use class name for equals(). |
| protected void | findReferencedClassInfo(final Map<String, ClassInfo>
the map from class name to classNameToClassInfo, final Set<ClassInfo> ClassInfo.the referenced class info refdClassInfo, final LogNode the log log)Overrides io. Get |
| public ArrayTypeSignature | Returns: The class type signature, if available, otherwise returns null.Get the type signature of the class. |
| public ClassInfo | Returns: theClassInfo 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.Get the |
| public TypeSignature | Returns: The type signature of the array elements.Get the type signature of the array elements. |
| public int | Returns: The number of dimensions of the array.Get the number of dimensions of the array. |
| public ClassTypeSignature | Returns: null (always).Overrides io. Returns null, because array classes do not have a ClassTypeSignature. |
| public String | Returns: The raw type signature string of the array class.Overrides io. Get the raw type signature string of the array class, e.g. "[[I" for "int[][]". |
| public int | |
| public Class | Returns: The class reference, or null, if ignoreExceptions is true and there was an exception or error loading the class.Whether or not to ignore exceptions ignoreExceptions)Overrides io. Obtain a |
| public Class | Returns: The class reference.Overrides io. Obtain a |
| public Class | Returns: aClass<?> reference for the array element type. Also works for arrays of primitive element
type.Whether or not to ignore exceptions. ignoreExceptions)Get a |
| public Class | Returns: aClass<?> reference for the array element type. Also works for arrays of primitive element
type.Get a |
| pack-priv void | setScanResult(final ScanResult
the scan result scanResult)Overrides io. Set ScanResult backreferences in info objects after scan has completed. |
| arrayTypeSignature | back to summary |
|---|---|
| private ArrayTypeSignature arrayTypeSignature The array type signature. | |
| elementClassInfo | back to summary |
|---|---|
| private ClassInfo elementClassInfo The element class info. | |
| ArrayClassInfo | back to summary |
|---|---|
| pack-priv ArrayClassInfo() Default constructor for deserialization. | |
| ArrayClassInfo | back to summary |
|---|---|
| pack-priv ArrayClassInfo(final ArrayTypeSignature arrayTypeSignature) Constructor.
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides io. Doc from io. Use class name for equals(). | |
| findReferencedClassInfo | back to summary |
|---|---|
| protected void findReferencedClassInfo(final Map<String, ClassInfo> classNameToClassInfo, final Set<ClassInfo> refdClassInfo, final LogNode log) Overrides io. Get | |
| getArrayTypeSignature | back to summary |
|---|---|
| public ArrayTypeSignature getArrayTypeSignature() Get the type signature of the class.
| |
| getElementClassInfo | back to summary |
|---|---|
| public ClassInfo getElementClassInfo() Get the | |
| getElementTypeSignature | back to summary |
|---|---|
| public TypeSignature getElementTypeSignature() Get the type signature of the array elements.
| |
| getNumDimensions | back to summary |
|---|---|
| public int getNumDimensions() Get the number of dimensions of the array.
| |
| getTypeSignature | back to summary |
|---|---|
| public ClassTypeSignature getTypeSignature() Overrides io. Returns null, because array classes do not have a ClassTypeSignature. Call
| |
| getTypeSignatureStr | back to summary |
|---|---|
| public String getTypeSignatureStr() Overrides io. Get the raw type signature string of the array class, e.g. "[[I" for "int[][]". | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from io. Use hash code of class name.
| |
| loadClass | back to summary |
|---|---|
| public Class Overrides io. Obtain a
| |
| loadClass | back to summary |
|---|---|
| public Class Overrides io. Obtain a
| |
| loadElementClass | back to summary |
|---|---|
| public Class Get a
| |
| loadElementClass | back to summary |
|---|---|
| public Class Get a
| |
| setScanResult | back to summary |
|---|---|
| pack-priv void setScanResult(final ScanResult scanResult) Overrides io. Doc from io. Set ScanResult backreferences in info objects after scan has completed.
| |