|
||||||||||
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.InstanceImpl
public class InstanceImpl
Implementation of a plain Java object. This includes field information.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.mat.snapshot.model.IObject |
---|
IObject.Type |
Constructor Summary | |
---|---|
InstanceImpl(int objectId,
long address,
ClassImpl clazz,
java.util.List<Field> fields)
Construct a representation of plain java object in the snapshot. |
Method Summary | |
---|---|
Field |
getField(java.lang.String name)
Returns the field identified by the name. |
java.util.List<Field> |
getFields()
Returns all fields of the object. |
long |
getObjectAddress()
Get address for the snapshot object. |
int |
getObjectId()
Get id for the snapshot object. |
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. |
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.AbstractObjectImpl |
---|
equals, getClassAddress, getClassId, getClassSpecificName, getClazz, getComparatorForClassSpecificName, getComparatorForTechnicalName, getComparatorForUsedHeapSize, getDisplayName, getGCRootInfo, getRetainedHeapSize, getSnapshot, getTechnicalName, 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.IObject |
---|
getClassSpecificName, getClazz, getDisplayName, getGCRootInfo, getRetainedHeapSize, getSnapshot, getTechnicalName, resolveValue |
Constructor Detail |
---|
public InstanceImpl(int objectId, long address, ClassImpl clazz, java.util.List<Field> fields)
objectId
- the object idaddress
- the actual addressclazz
- the type of the objectfields
- the instance fields of the object (the static fields are held in the class)Method Detail |
---|
public long getObjectAddress()
IObject
long
), have no consecutive order (with gaps), and are not
used for hashing.
getObjectAddress
in interface IObject
getObjectAddress
in class AbstractObjectImpl
public int getObjectId()
IObject
int
(this helps
reducing the memory footprint of the snapshot considerably - addresses
are only used for visualization purposes).
getObjectId
in interface IObject
getObjectId
in class AbstractObjectImpl
public java.util.List<Field> getFields()
IInstance
Fields are ordered in such a way, that first fields defined in the current class and then fields of the super class and its super classes are returned. This order is important to know, if a class declares a field by the same name as the class it inherits from.
getFields
in interface IInstance
public Field getField(java.lang.String name)
IInstance
If declares a member variable by the same name as the parent class does, then the result of this method is undefined.
getField
in interface IInstance
public long getUsedHeapSize()
IObject
getUsedHeapSize
in interface IObject
getUsedHeapSize
in class AbstractObjectImpl
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 |