Class ProgramChangeRecord

java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
ghidra.program.util.ProgramChangeRecord
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CodeUnitPropertyChangeRecord, CommentChangeRecord, FunctionChangeRecord

public class ProgramChangeRecord extends DomainObjectChangeRecord
Event data for a DomainObjectChangeEvent generated by a Program.
See Also:
  • 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 type
      start - starting address that is affected by the event
      end - ending address that is affected by the event
      affected - the object that was affected by this change, if applicable
      oldValue - original value
      newValue - new value
    • ProgramChangeRecord

      public ProgramChangeRecord(ProgramEvent eventType, Object oldValue, Object newValue)
  • Method Details

    • getStart

      public Address 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

      public Address 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

      public Object getObject()
      Return the object that is the subject of this change record.
      Returns:
      the object affected or null if not applicable
    • toString

      public String toString()
      Overrides:
      toString in class DomainObjectChangeRecord