- java.lang.Object
-
- com.ibm.dtfj.java.j9.JavaAbstractClass
-
- com.ibm.dtfj.java.j9.JavaArrayClass
-
- All Implemented Interfaces:
JavaClass
public class JavaArrayClass extends JavaAbstractClass
-
-
Field Summary
-
Fields declared in class com.ibm.dtfj.java.j9.JavaAbstractClass
_classPointer, _javaVM
-
Fields declared in interface com.ibm.dtfj.java.JavaClass
MODIFIERS_UNAVAILABLE
-
-
Constructor Summary
Constructors Constructor Description JavaArrayClass(JavaRuntime runtime, ImagePointer pointer, int modifiers, int flagOffset, int sizeOffset, int bytesForSize, int firstElementOffset, long leafClassID, int dimension, long loaderID, ImagePointer objectID, int hashcodeSlot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBytesPerElement(int refFieldSize)
Looks up the class name of the child elements to determine the size of one elementint
getFirstElementOffset()
JavaClass
getLeafClass()
int
getNumberOfSizeBytes()
int
getSizeOffset()
-
Methods declared in class com.ibm.dtfj.java.j9.JavaAbstractClass
addClassLoaderReference, addClassObjectReference, addInterfaceName, addSuperclassReference, getHashcodeSlotSize, getInstanceSize, readFlagsFromInstance
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface com.ibm.dtfj.java.JavaClass
equals, getClassLoader, getComponentType, getConstantPoolReferences, getDeclaredFields, getDeclaredMethods, getID, getInstanceSize, getInterfaces, getModifiers, getName, getObject, getProtectionDomain, getReferences, getSuperclass, hashCode, isArray
-
-
-
-
Constructor Detail
-
JavaArrayClass
public JavaArrayClass(JavaRuntime runtime, ImagePointer pointer, int modifiers, int flagOffset, int sizeOffset, int bytesForSize, int firstElementOffset, long leafClassID, int dimension, long loaderID, ImagePointer objectID, int hashcodeSlot)
-
-
Method Detail
-
getLeafClass
public JavaClass getLeafClass()
-
getBytesPerElement
public int getBytesPerElement(int refFieldSize) throws CorruptDataException
Looks up the class name of the child elements to determine the size of one element- Parameters:
refFieldSize
- The size of reference fields (fj9object_t) in the heap of the object instance we are sizing- Returns:
- The size of one element, in bytes
- Throws:
CorruptDataException
-
getFirstElementOffset
public int getFirstElementOffset()
- Returns:
-
getSizeOffset
public int getSizeOffset()
- Returns:
- The offset into an array where the length (in elements) is found
-
getNumberOfSizeBytes
public int getNumberOfSizeBytes()
- Returns:
- The number of bytes to read from the object header as the size field
-
-