Package ghidra.program.util

# Class CodeUnitUserDataChangeRecord

java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
ghidra.program.util.CodeUnitUserDataChangeRecord

All Implemented Interfaces:
  `Serializable`

public class CodeUnitUserDataChangeRecord extends DomainObjectChangeRecord

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CodeUnitUserDataChangeRecord(String propertyName, Address codeUnitAddr, Object oldValue, Object newValue)`
  Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Address`
  `getAddress()`
  Get the address of the code unit for this property change.
  `String`
  `getPropertyName()`
  Get the name of the property being changed.
  `String`
  `toString()`

  ### Methods inherited from class ghidra.framework.model.DomainObjectChangeRecord

  `getEventType, getNewValue, getOldValue`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CodeUnitUserDataChangeRecord

    public CodeUnitUserDataChangeRecord(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

- ## Method Details

  - ### getPropertyName

    public String getPropertyName()
    Get the name of the property being changed.
    Returns:
      the name of the property being changed

  - ### getAddress

    public Address getAddress()
    Get the address of the code unit for this property change.
    Returns:
      the address of the code unit for this property change

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `DomainObjectChangeRecord`