Class AbstractOption<T>

java.lang.Object
ghidra.app.util.Option
ghidra.app.util.importer.options.AbstractOption<T>
Type Parameters:
T - The Option value type
Direct Known Subclasses:
AddressOption, AddressSpaceOption, BooleanOption, HexLongOption, IntegerOption, StringOption

public abstract class AbstractOption<T> extends Option
An Option that is specific to a value type
  • Method Details

    • getValue

      public T getValue()
      Description copied from class: Option
      Returns the value of this option.
      Overrides:
      getValue in class Option
      Returns:
      the value of this option
    • setValue

      public void setValue(Object v) throws IllegalArgumentException
      Description copied from class: Option
      Set the value for this option
      Overrides:
      setValue in class Option
      Parameters:
      v - value of this option
      Throws:
      IllegalArgumentException - if the type of the object doesn't not match this option's value class
    • copy

      public abstract AbstractOption<T> copy()
      Description copied from class: Option
      Returns a copy of this Option object.

      NOTE: Option subclasses should always overwrite this method so they can return their exact type, instead of the more generic Option type.

      NOTE: When the deprecated constructors of this class get removed, this method should become abstract.

      Overrides:
      copy in class Option
      Returns:
      a copy of this Option object