public class MCOldObject extends java.lang.Object implements IMCOldObject
IMCOldObject
interface.Modifier and Type | Class and Description |
---|---|
private static class |
MCOldObject.MCOldObjectArray |
private static class |
MCOldObject.MCOldObjectField |
Modifier and Type | Field and Description |
---|---|
private IQuantity |
address |
private MCOldObject.MCOldObjectArray |
array |
private MCOldObject.MCOldObjectField |
field |
private java.lang.String |
objectDescription |
private IMCOldObject |
referrer |
private IMCType |
type |
Constructor and Description |
---|
MCOldObject(IQuantity address,
IMCType type,
java.lang.String objectDescription,
IMCOldObject referrer,
java.lang.String field,
IQuantity fieldModifier,
IQuantity arraySize,
IQuantity arrayIndex)
Create a new old object instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
IQuantity |
getAddress()
The address of the object, used for identity purposes.
|
java.lang.String |
getDescription()
Returns a description of the object.
|
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.
|
IMCType |
getType()
The type of the object, as an
IMCType |
int |
hashCode() |
java.lang.String |
toString() |
private final IQuantity address
private final MCOldObject.MCOldObjectArray array
private final MCOldObject.MCOldObjectField field
private final java.lang.String objectDescription
private final IMCOldObject referrer
private final IMCType type
public MCOldObject(IQuantity address, IMCType type, java.lang.String objectDescription, IMCOldObject referrer, java.lang.String field, IQuantity fieldModifier, IQuantity arraySize, IQuantity arrayIndex)
address
- object address, see IMCOldObject.getAddress()
type
- object typeobjectDescription
- object descriptionreferrer
- Referrer object, see IMCOldObject.getReferrer()
. null
if there is
no referring object.field
- Name of the referring field, see IMCOldObjectField.getName()
. null
if there is no referring field.fieldModifier
- Modifier of the referring field, see IMCOldObjectField.getModifier()
.
null
if there is no referring field.arraySize
- The array size if field
refers to an array, see
IMCOldObjectArray.getSize()
. null
if the field is not an array.arrayIndex
- The array index that refers to this object if field
refers to an array,
see IMCOldObjectArray.getIndex()
. null
if the field is not an
array.public IQuantity getAddress()
IMCOldObject
getAddress
in interface IMCOldObject
public IMCOldObjectArray getReferrerArray()
IMCOldObject
null
.getReferrerArray
in interface IMCOldObject
public IMCOldObjectField getReferrerField()
IMCOldObject
null
otherwise.getReferrerField
in interface IMCOldObject
public java.lang.String getDescription()
IMCOldObject
getDescription
in interface IMCOldObject
public IMCOldObject getReferrer()
IMCOldObject
getReferrer
in interface IMCOldObject
public IMCType getType()
IMCOldObject
IMCType
getType
in interface IMCOldObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int getReferrerSkip()
IMCOldObject
getReferrerSkip
in interface IMCOldObject