Package ghidra.trace.database.target
Record Class ImmutableValueShape
java.lang.Object
java.lang.Record
ghidra.trace.database.target.ImmutableValueShape
- All Implemented Interfaces:
ValueShape,BoundedShape<ValueBox>
public record ImmutableValueShape(DBTraceObject parent, DBTraceObject child, String entryKey, Lifespan lifespan, int addressSpaceId, long minAddressOffset, long maxAddressOffset)
extends Record
implements ValueShape
-
Constructor Summary
ConstructorsConstructorDescriptionImmutableValueShape(DBTraceObject parent, DBTraceObject child, String entryKey, Lifespan lifespan, int addressSpaceId, long minAddressOffset, long maxAddressOffset) Creates an instance of aImmutableValueShaperecord class.ImmutableValueShape(DBTraceObject parent, Object value, String entryKey, Lifespan lifespan) ImmutableValueShape(ValueShape shape) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaddressSpaceIdrecord component.child()Returns the value of thechildrecord component.entryKey()Returns the value of theentryKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.intIf the value is an address or range, the id of the address spacestatic intgetAddressSpaceId(Object value) getChild()longstatic longgetMaxAddressOffset(Object value) longstatic longgetMinAddressOffset(Object value) final inthashCode()Returns a hash code value for this object.lifespan()Returns the value of thelifespanrecord component.longReturns the value of themaxAddressOffsetrecord component.longReturns the value of theminAddressOffsetrecord component.parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ghidra.trace.database.target.ValueShape
getMaxAddress, getMinAddress, getRange
-
Constructor Details
-
ImmutableValueShape
-
ImmutableValueShape
-
ImmutableValueShape
public ImmutableValueShape(DBTraceObject parent, DBTraceObject child, String entryKey, Lifespan lifespan, int addressSpaceId, long minAddressOffset, long maxAddressOffset) Creates an instance of aImmutableValueShaperecord class.- Parameters:
parent- the value for theparentrecord componentchild- the value for thechildrecord componententryKey- the value for theentryKeyrecord componentlifespan- the value for thelifespanrecord componentaddressSpaceId- the value for theaddressSpaceIdrecord componentminAddressOffset- the value for theminAddressOffsetrecord componentmaxAddressOffset- the value for themaxAddressOffsetrecord component
-
-
Method Details
-
getAddressSpaceId
-
getMinAddressOffset
-
getMaxAddressOffset
-
getBounds
- Specified by:
getBoundsin interfaceBoundedShape<ValueBox>
-
description
- Specified by:
descriptionin interfaceBoundedShape<ValueBox>
-
getParent
- Specified by:
getParentin interfaceValueShape
-
getChild
- Specified by:
getChildin interfaceValueShape
-
getChildOrNull
- Specified by:
getChildOrNullin interfaceValueShape
-
getEntryKey
- Specified by:
getEntryKeyin interfaceValueShape
-
getLifespan
- Specified by:
getLifespanin interfaceValueShape
-
getAddressSpaceId
public int getAddressSpaceId()Description copied from interface:ValueShapeIf the value is an address or range, the id of the address space- Specified by:
getAddressSpaceIdin interfaceValueShape- Returns:
- the space id, or -1 for non-address value
-
getMinAddressOffset
public long getMinAddressOffset()- Specified by:
getMinAddressOffsetin interfaceValueShape
-
getMaxAddressOffset
public long getMaxAddressOffset()- Specified by:
getMaxAddressOffsetin interfaceValueShape
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-
child
Returns the value of thechildrecord component.- Returns:
- the value of the
childrecord component
-
entryKey
Returns the value of theentryKeyrecord component.- Returns:
- the value of the
entryKeyrecord component
-
lifespan
Returns the value of thelifespanrecord component.- Returns:
- the value of the
lifespanrecord component
-
addressSpaceId
public int addressSpaceId()Returns the value of theaddressSpaceIdrecord component.- Returns:
- the value of the
addressSpaceIdrecord component
-
minAddressOffset
public long minAddressOffset()Returns the value of theminAddressOffsetrecord component.- Returns:
- the value of the
minAddressOffsetrecord component
-
maxAddressOffset
public long maxAddressOffset()Returns the value of themaxAddressOffsetrecord component.- Returns:
- the value of the
maxAddressOffsetrecord component
-