Class AddressValue

java.lang.Object
docking.widgets.values.AbstractValue<Address>
ghidra.features.base.values.AddressValue

public class AddressValue extends AbstractValue<Address>
Value class for Address types. In order to parse and create Address types, an AddressFactory is required when defining this type. As a convenience, it can be constructed with a Program, in which case it will use the AddressFactory from that program.

This class and other subclasses of AbstractValue are part of a subsystem for easily defining a set of values that can be displayed in an input dialog (ValuesMapDialog). Typically, these values are created indirectly using a GValuesMap which is then given to the constructor of the dialog. However, an alternate approach is to create the dialog without a ValuesMap and then use its ValuesMapDialog.addValue(AbstractValue) method directly.

  • Constructor Details

    • AddressValue

      public AddressValue(String name, Address defaultValue, Program program)
      Creates an AddressValue with an optional default value and uses the AddressFactory from the given program.
      Parameters:
      name - the name of this value
      defaultValue - an optional default value
      program - the program whose AddressFactory will be used to create Addresses.
    • AddressValue

      public AddressValue(String name, Address defaultValue, AddressFactory factory)
      Creates an AddressValue with an optional default value.
      Parameters:
      name - the name of this value
      defaultValue - an optional default value
      factory - the AddressFactory that will be used to create Addresses.
  • Method Details