public class MCOldObject extends Object implements IMCOldObject
IMCOldObject
interface.Constructor and Description |
---|
MCOldObject(IQuantity address,
IMCType type,
String objectDescription,
IMCOldObject referrer,
String field,
IQuantity fieldModifier,
IQuantity arraySize,
IQuantity arrayIndex)
Create a new old object instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
IQuantity |
getAddress()
The address of the object, used for identity purposes.
|
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() |
String |
toString() |
public MCOldObject(IQuantity address, IMCType type, String objectDescription, IMCOldObject referrer, 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 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 int getReferrerSkip()
IMCOldObject
getReferrerSkip
in interface IMCOldObject
Copyright © 2019. All rights reserved.