public class ReferenceTreeObject extends Object implements IMCOldObject
ReferenceTreeModel
.Modifier and Type | Class and Description |
---|---|
static class |
ReferenceTreeObject.ReferenceTreeObjectType |
Modifier and Type | Field and Description |
---|---|
static int |
FORMAT_ARRAY_INFO |
static int |
FORMAT_FIELD |
static int |
FORMAT_OTHER_MODIFIERS |
static int |
FORMAT_PACKAGE |
static int |
FORMAT_STATIC_MODIFIER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
IQuantity |
getAddress()
The address of the object, used for identity purposes.
|
IMCOldObjectArray |
getArray() |
List<ReferenceTreeObject> |
getChildren() |
String |
getDescription()
Returns a description of the object.
|
int |
getDistanceFromRoot() |
IMCOldObjectField |
getField() |
Set<IItem> |
getItems()
This method is used when it is necessary to get information about all objects this object
keeps alive in the
ReferenceTreeModel . |
double |
getLeakRelevance() |
int |
getObjectsKeptAliveCount() |
ReferenceTreeObject |
getParent()
This method returns an object that is keeping this object alive.
|
IMCOldObject |
getReferrer()
Returns the object that refers to this object in the heap reference chain.
|
IMCOldObjectArray |
getReferrerArray()
If the object is referred to by an object in an array it returns the information about that
array, otherwise it returns
null . |
IMCOldObjectField |
getReferrerField()
If the object is referred to by an object in a field it returns a representation of the
field,
null otherwise. |
int |
getReferrerSkip()
Returns the number of steps away in the reference chain this object is from the next object
referring to it.
|
String |
getRootDescription() |
IQuantity |
getTimestamp() |
IMCType |
getType()
The type of the object, as an
IMCType |
int |
hashCode() |
void |
setParent(ReferenceTreeObject parent) |
String |
toString(int displayFormatting)
Returns a string representation of this object.
|
public static final int FORMAT_PACKAGE
public static final int FORMAT_FIELD
public static final int FORMAT_STATIC_MODIFIER
public static final int FORMAT_OTHER_MODIFIERS
public static final int FORMAT_ARRAY_INFO
public int getDistanceFromRoot()
public double getLeakRelevance()
public Set<IItem> getItems()
ReferenceTreeModel
. E.g. the Mission Control GUI uses this when a
user selects a row in the tree to show everything below it as well in the properties view.IItem
objects this object keeps alive, including
itselfpublic String getRootDescription()
public IQuantity getAddress()
IMCOldObject
getAddress
in interface IMCOldObject
public IMCOldObjectArray getReferrerArray()
IMCOldObject
null
.getReferrerArray
in interface IMCOldObject
public IMCOldObjectArray getArray()
null
otherwisepublic List<ReferenceTreeObject> getChildren()
public IMCOldObjectField getReferrerField()
IMCOldObject
null
otherwise.getReferrerField
in interface IMCOldObject
public IMCOldObjectField getField()
null
otherwisepublic String getDescription()
IMCOldObject
getDescription
in interface IMCOldObject
public int getObjectsKeptAliveCount()
public ReferenceTreeObject getParent()
public IMCOldObject getReferrer()
IMCOldObject
getReferrer
in interface IMCOldObject
public IQuantity getTimestamp()
public IMCType getType()
IMCOldObject
IMCType
getType
in interface IMCOldObject
public void setParent(ReferenceTreeObject parent)
parent
- the parent of this objectpublic int getReferrerSkip()
IMCOldObject
getReferrerSkip
in interface IMCOldObject
public String toString(int displayFormatting)
displayFormatting
- an int describing how this object is to be represented, using bitwise masking of
constants defined in ReferenceTreeObject
Copyright © 2019. All rights reserved.