Package ghidra.program.model.listing

# Interface DefaultProgramContext

All Known Implementing Classes:
  `AbstractProgramContext`, `AbstractStoredProgramContext`, `AssemblyDefaultContext`, `Disassembler.DisassemblerProgramContext`, `OldProgramContextDB`, `ProgramContextImpl`, `ProgramRegisterContextDB`

public interface DefaultProgramContext

- ## Method Summary

  Modifier and Type
  Method
  Description
  `RegisterValue`
  `getDefaultValue(Register register, Address address)`
  Returns the default value of a register at a given address.
  `void`
  `setDefaultValue(RegisterValue registerValue, Address start, Address end)`
  Associates a default value with the given register over the given range.

- ## Method Details

  - ### setDefaultValue

    void setDefaultValue(RegisterValue registerValue, Address start, Address end)
    Associates a default value with the given register over the given range.
    Parameters:
      `registerValue` - the register for which to associate a default value.
      `start` - the start address.
      `end` - the end address (inclusive)

  - ### getDefaultValue

    RegisterValue getDefaultValue(Register register, Address address)
    Returns the default value of a register at a given address.
    Parameters:
      `register` - the register for which to get a default value.
      `address` - the address at which to get a default value.
    Returns:
      the default value of the register at the given address or null if no default value has been assigned.