|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.parser.model.AbstractObjectImpl
org.eclipse.mat.parser.model.AbstractArrayImpl
org.eclipse.mat.parser.model.ObjectArrayImpl
public class ObjectArrayImpl
Implementation of a Java object array.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.mat.snapshot.model.IObject |
---|
IObject.Type |
Constructor Summary | |
---|---|
ObjectArrayImpl(int objectId,
long address,
ClassImpl classInstance,
int length)
Constructs an array of objects. |
Method Summary | |
---|---|
static long |
doGetUsedHeapSize(ClassImpl clazz,
int length)
Calculates the size of an object array |
java.util.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. |
Methods inherited from class org.eclipse.mat.parser.model.AbstractArrayImpl |
---|
getInfo, getLength, getTechnicalName, setInfo, setLength |
Methods inherited from class org.eclipse.mat.parser.model.AbstractObjectImpl |
---|
equals, getClassAddress, getClassId, getClassSpecificName, getClazz, getComparatorForClassSpecificName, getComparatorForTechnicalName, getComparatorForUsedHeapSize, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getRetainedHeapSize, getSnapshot, hashCode, resolveValue, setClassInstance, setObjectAddress, setObjectId, setSnapshot, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.mat.snapshot.model.IArray |
---|
getLength |
Methods inherited from interface org.eclipse.mat.snapshot.model.IObject |
---|
getClassSpecificName, getClazz, getDisplayName, getGCRootInfo, getObjectAddress, getObjectId, getRetainedHeapSize, getSnapshot, getTechnicalName, resolveValue |
Constructor Detail |
---|
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 elementsMethod Detail |
---|
public 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 elements
public 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 java.util.List<NamedReference> getOutboundReferences()
IObject
getOutboundReferences
in interface IObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |