public class ObjectArrayImpl extends AbstractArrayImpl implements IObjectArray
IObject.Type
Constructor and Description |
---|
ObjectArrayImpl(int objectId,
long address,
ClassImpl classInstance,
int length)
Constructs an array of objects.
|
Modifier and Type | Method and Description |
---|---|
static long |
doGetUsedHeapSize(ClassImpl clazz,
int length)
Calculates the size of an object array
|
List<NamedReference> |
getOutboundReferences()
Get list of snapshot objects referenced from this snapshot object with
the name of the field over which it was referenced.
|
long[] |
getReferenceArray()
Get an array with the object addresses.
|
long[] |
getReferenceArray(int offset,
int length)
Get an array with the object addresses, beginning at
offset
and length number of elements. |
ArrayLong |
getReferences()
Gets the outbound references from this object, as addresses.
|
long |
getUsedHeapSize()
Get used heap size of just this object.
|
getInfo, getLength, getTechnicalName, setInfo, setLength
equals, getClassAddress, getClassId, getClassSpecificName, getClazz, getComparatorForClassSpecificName, getComparatorForTechnicalName, getComparatorForUsedHeapSize, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getRetainedHeapSize, getSnapshot, hashCode, resolveValue, setClassInstance, setObjectAddress, setObjectId, setSnapshot, toString
getClassSpecificName, getClazz, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getRetainedHeapSize, getSnapshot, getTechnicalName, resolveValue
public ObjectArrayImpl(int objectId, long address, ClassImpl classInstance, int length)
objectId
- the object id of the arrayaddress
- the actual addressclassInstance
- the type of the arraylength
- the length of the array in elementspublic long getUsedHeapSize()
IObject
getUsedHeapSize
in interface IObject
getUsedHeapSize
in class AbstractObjectImpl
public static long doGetUsedHeapSize(ClassImpl clazz, int length)
clazz
- the typelength
- the length in elementspublic long[] getReferenceArray()
IObjectArray
null
values in the array.getReferenceArray
in interface IObjectArray
public long[] getReferenceArray(int offset, int length)
IObjectArray
offset
and length
number of elements.getReferenceArray
in interface IObjectArray
public ArrayLong getReferences()
AbstractObjectImpl
getReferences
in class AbstractObjectImpl
public List<NamedReference> getOutboundReferences()
IObject
getOutboundReferences
in interface IObject