Class AddressSpaceOption
java.lang.Object
ghidra.app.util.Option
ghidra.app.util.importer.options.AbstractOption<AddressSpace>
ghidra.app.util.importer.options.AddressSpaceOption
An
Option used to specify an AddressSpace-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAddressSpaceOption(String name, AddressSpace value, String arg, String group, String stateKey, boolean hidden, String description) Creates a newAddressSpaceOption -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns a copy of thisOptionobject.getCustomEditorComponent(AddressFactoryService addressFactoryService) Override if you want to provide a custom widget for selecting your options.booleanparseAndSetValueByType(String str, AddressFactory addressFactory) Set the value for this option by parsing the given string and converting it to the option's type.Methods inherited from class AbstractOption
getValue, setValueMethods inherited from class Option
getArg, getDescription, getGroup, getName, getState, getStateKey, getValueClass, isHidden, newAddress, newAddressSpace, newBoolean, newDomainFile, newDomainFolder, newHexLong, newInteger, newString, setOptionListener, toString
-
Constructor Details
-
AddressSpaceOption
public AddressSpaceOption(String name, AddressSpace value, String arg, String group, String stateKey, boolean hidden, String description) Creates a newAddressSpaceOption- Parameters:
name- the name of the optionvalue- the value of the optionarg- the option's command line argumentgroup- the name for group of optionsstateKey- the state key namehidden- true if this option should be hidden from the user; otherwise, falsedescription- a description of the option
-
-
Method Details
-
parseAndSetValueByType
Description copied from class:OptionSet the value for this option by parsing the given string and converting it to the option's type. Fails if this option doesn't have a type associated with it, or if an unsupported type is needed to be parsed.- Overrides:
parseAndSetValueByTypein classOption- Parameters:
str- The value to set, in string form.addressFactory- An address factory to use for when the option trying to be set is an Address. If null, an exception will be thrown for Address type options.- Returns:
- True if the value was successfully parsed and set; otherwise, false.
-
getCustomEditorComponent
Description copied from class:OptionOverride if you want to provide a custom widget for selecting your options.Important! If you override this you MUST also override the
Option.copy()method so it returns a new instance of your custom editor.- Overrides:
getCustomEditorComponentin classOption- Parameters:
addressFactoryService- TheAddressFactoryService- Returns:
- the custom editor
Component, ornullif there isn't one
-
copy
Description copied from class:OptionReturns a copy of thisOptionobject.NOTE:
Optionsubclasses should always overwrite this method so they can return their exact type, instead of the more genericOptiontype.NOTE: When the deprecated constructors of this class get removed, this method should become abstract.
- Specified by:
copyin classAbstractOption<AddressSpace>- Returns:
- a copy of this
Optionobject
-