Package ghidra.program.util
Class ProgramChangeRecord
java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
ghidra.program.util.ProgramChangeRecord
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CodeUnitPropertyChangeRecord
,CommentChangeRecord
,FunctionChangeRecord
Event data for a DomainObjectChangeEvent generated by a Program.
- See Also:
-
Constructor Summary
ConstructorDescriptionProgramChangeRecord
(ProgramEvent eventType, Address start, Address end, Object affected, Object oldValue, Object newValue) Construct a new ProgramChangeRecord; any of the Address or Object params may be null, depending on what the type param is.ProgramChangeRecord
(ProgramEvent eventType, Object oldValue, Object newValue) -
Method Summary
Modifier and TypeMethodDescriptiongetEnd()
Get the end address of the affected addresses of this change or null if not applicable.Return the object that is the subject of this change record.getStart()
Get the start address of the affected addresses of this change or null if not applicable.toString()
Methods inherited from class ghidra.framework.model.DomainObjectChangeRecord
getEventType, getNewValue, getOldValue
-
Constructor Details
-
ProgramChangeRecord
public ProgramChangeRecord(ProgramEvent eventType, Address start, Address end, Object affected, Object oldValue, Object newValue) Construct a new ProgramChangeRecord; any of the Address or Object params may be null, depending on what the type param is.- Parameters:
eventType
- event typestart
- starting address that is affected by the eventend
- ending address that is affected by the eventaffected
- the object that was affected by this change, if applicableoldValue
- original valuenewValue
- new value
-
ProgramChangeRecord
-
-
Method Details
-
getStart
Get the start address of the affected addresses of this change or null if not applicable.- Returns:
- the start address of the effected address of this change
-
getEnd
Get the end address of the affected addresses of this change or null if not applicable.- Returns:
- the end address of the effected address of this change
-
getObject
Return the object that is the subject of this change record.- Returns:
- the object affected or null if not applicable
-
toString
- Overrides:
toString
in classDomainObjectChangeRecord
-