Package ghidra.program.util
Class CodeUnitPropertyChangeRecord
- java.lang.Object
-
- ghidra.framework.model.DomainObjectChangeRecord
-
- ghidra.program.util.CodeUnitPropertyChangeRecord
-
- All Implemented Interfaces:
java.io.Serializable
public class CodeUnitPropertyChangeRecord extends DomainObjectChangeRecord
Change record generated when a property on a code unit changes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CodeUnitPropertyChangeRecord(java.lang.String propertyName, Address start, Address end)
Constructor for change record for removing a range of properties.CodeUnitPropertyChangeRecord(java.lang.String propertyName, Address codeUnitAddr, java.lang.Object oldValue, java.lang.Object newValue)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Address
getAddress()
Get the address of the code unit for this property change.Address
getEndAddress()
Get the end address of the range of properties that were removed.java.lang.Object
getNewValue()
Get the new value.java.lang.Object
getOldValue()
Get the original value.java.lang.String
getPropertyName()
Get the name of the property being changed.Address
getStartAddress()
Get the start address of the range of properties that were removed.-
Methods inherited from class ghidra.framework.model.DomainObjectChangeRecord
getEventType, getSubEventType, toString
-
-
-
-
Constructor Detail
-
CodeUnitPropertyChangeRecord
public CodeUnitPropertyChangeRecord(java.lang.String propertyName, Address codeUnitAddr, java.lang.Object oldValue, java.lang.Object newValue)
Constructor- Parameters:
propertyName
- name of the propertycodeUnitAddr
- address of the code unitoldValue
- old valuenewValue
- new value
-
CodeUnitPropertyChangeRecord
public CodeUnitPropertyChangeRecord(java.lang.String propertyName, Address start, Address end)
Constructor for change record for removing a range of properties.- Parameters:
propertyName
- name of the propertystart
- start of the range of properties being removedend
- end of the range of properties being removed
-
-
Method Detail
-
getPropertyName
public java.lang.String getPropertyName()
Get the name of the property being changed.
-
getAddress
public Address getAddress()
Get the address of the code unit for this property change.
-
getOldValue
public java.lang.Object getOldValue()
Get the original value.- Overrides:
getOldValue
in classDomainObjectChangeRecord
-
getNewValue
public java.lang.Object getNewValue()
Get the new value.- Overrides:
getNewValue
in classDomainObjectChangeRecord
-
getStartAddress
public Address getStartAddress()
Get the start address of the range of properties that were removed.- Returns:
- null if the event type is not ChangeManager.DOCR_CODE_UNIT_PROPERTY_RANGE_REMOVED
-
getEndAddress
public Address getEndAddress()
Get the end address of the range of properties that were removed.- Returns:
- null if the event type is not ChangeManager.DOCR_CODE_UNIT_PROPERTY_RANGE_REMOVED
-
-