Class StructTypes.JfrOldObject
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v1.StructTypes.JfrOldObject
-
- All Implemented Interfaces:
IMCOldObject
- Enclosing class:
- StructTypes
static class StructTypes.JfrOldObject extends java.lang.Object implements IMCOldObject
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Objectaddressjava.lang.Objectdescriptionjava.lang.Objectreferrerprivate static intreferrerArrayIndexprivate static intreferrerFieldIndexprivate static intreferrerOldObjectIndexprivate static intreferrerSkipIndexjava.lang.Objecttype
-
Constructor Summary
Constructors Constructor Description JfrOldObject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)IQuantitygetAddress()The address of the object, used for identity purposes.java.lang.StringgetDescription()Returns a description of the object.IMCOldObjectgetReferrer()Returns the object that refers to this object in the heap reference chain.IMCOldObjectArraygetReferrerArray()If the object is referred to by an object in an array it returns the information about that array, otherwise it returnsnull.IMCOldObjectFieldgetReferrerField()If the object is referred to by an object in a field it returns a representation of the field,nullotherwise.intgetReferrerSkip()Returns the number of steps away in the reference chain this object is from the next object referring to it.IMCTypegetType()The type of the object, as anIMCTypeinthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
referrerArrayIndex
private static final int referrerArrayIndex
- See Also:
- Constant Field Values
-
referrerFieldIndex
private static final int referrerFieldIndex
- See Also:
- Constant Field Values
-
referrerOldObjectIndex
private static final int referrerOldObjectIndex
- See Also:
- Constant Field Values
-
referrerSkipIndex
private static final int referrerSkipIndex
- See Also:
- Constant Field Values
-
address
public java.lang.Object address
-
type
public java.lang.Object type
-
description
public java.lang.Object description
-
referrer
public java.lang.Object referrer
-
-
Method Detail
-
getAddress
public IQuantity getAddress()
Description copied from interface:IMCOldObjectThe address of the object, used for identity purposes.- Specified by:
getAddressin interfaceIMCOldObject- Returns:
- the address of the object
-
getReferrerArray
public IMCOldObjectArray getReferrerArray()
Description copied from interface:IMCOldObjectIf the object is referred to by an object in an array it returns the information about that array, otherwise it returnsnull.- Specified by:
getReferrerArrayin interfaceIMCOldObject- Returns:
- a representation of the array data for the object referring to this old object
-
getReferrerField
public IMCOldObjectField getReferrerField()
Description copied from interface:IMCOldObjectIf the object is referred to by an object in a field it returns a representation of the field,nullotherwise.- Specified by:
getReferrerFieldin interfaceIMCOldObject- Returns:
- a representation of the field that refers to this object
-
getType
public IMCType getType()
Description copied from interface:IMCOldObjectThe type of the object, as anIMCType- Specified by:
getTypein interfaceIMCOldObject- Returns:
- the type of the object
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IMCOldObjectReturns a description of the object.- Specified by:
getDescriptionin interfaceIMCOldObject- Returns:
- the object description
-
getReferrer
public IMCOldObject getReferrer()
Description copied from interface:IMCOldObjectReturns the object that refers to this object in the heap reference chain.- Specified by:
getReferrerin interfaceIMCOldObject- Returns:
- the object that refers to this object
-
getReferrerSkip
public int getReferrerSkip()
Description copied from interface:IMCOldObjectReturns the number of steps away in the reference chain this object is from the next object referring to it. If this is greater than 0, it means that there are objects between this one and the referrer that were omitted when committing the traces to the Flight Recording file.- Specified by:
getReferrerSkipin interfaceIMCOldObject- Returns:
- the number of steps between this object and the next one towards the root in the reference chain
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-