Package ghidra.program.util
Class CodeUnitPropertyChangeRecord
java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
ghidra.program.util.CodeUnitPropertyChangeRecord
- All Implemented Interfaces:
Serializable
Change record generated when a property on a code unit changes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCodeUnitPropertyChangeRecord
(String propertyName, Address start, Address end) Constructor for change record for removing a range of properties.CodeUnitPropertyChangeRecord
(String propertyName, Address codeUnitAddr, Object oldValue, Object newValue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGet the address of the code unit for this property change.Get the end address of the range of properties that were removed.Get the new value.Get the original value.Get the name of the property being changed.Get the start address of the range of properties that were removed.Methods inherited from class ghidra.framework.model.DomainObjectChangeRecord
getEventType, getSubEventType, toString
-
Constructor Details
-
CodeUnitPropertyChangeRecord
public CodeUnitPropertyChangeRecord(String propertyName, Address codeUnitAddr, Object oldValue, Object newValue) Constructor- Parameters:
propertyName
- name of the propertycodeUnitAddr
- address of the code unitoldValue
- old valuenewValue
- new value
-
CodeUnitPropertyChangeRecord
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 Details
-
getPropertyName
Get the name of the property being changed. -
getAddress
Get the address of the code unit for this property change. -
getOldValue
Get the original value.- Overrides:
getOldValue
in classDomainObjectChangeRecord
-
getNewValue
Get the new value.- Overrides:
getNewValue
in classDomainObjectChangeRecord
-
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
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
-