Class CodeUnitPropertyChangeRecord

java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
ghidra.program.util.CodeUnitPropertyChangeRecord
All Implemented Interfaces:
Serializable

public class CodeUnitPropertyChangeRecord extends DomainObjectChangeRecord
Change record generated when a property on a code unit changes.
See Also:
  • Constructor Details

    • CodeUnitPropertyChangeRecord

      public CodeUnitPropertyChangeRecord(String propertyName, Address codeUnitAddr, Object oldValue, Object newValue)
      Constructor
      Parameters:
      propertyName - name of the property
      codeUnitAddr - address of the code unit
      oldValue - old value
      newValue - new value
    • CodeUnitPropertyChangeRecord

      public CodeUnitPropertyChangeRecord(String propertyName, Address start, Address end)
      Constructor for change record for removing a range of properties.
      Parameters:
      propertyName - name of the property
      start - start of the range of properties being removed
      end - end of the range of properties being removed
  • Method Details

    • getPropertyName

      public 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 Object getOldValue()
      Get the original value.
      Overrides:
      getOldValue in class DomainObjectChangeRecord
    • getNewValue

      public Object getNewValue()
      Get the new value.
      Overrides:
      getNewValue in class DomainObjectChangeRecord
    • 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