Class AbstractOptionBuilder<ValueType, OptionType extends AbstractOption<ValueType>>
java.lang.Object
ghidra.app.util.AbstractOptionBuilder<ValueType, OptionType>
- Type Parameters:
ValueType- The option value typeOptionType- The build option type
- Direct Known Subclasses:
AddressOption.Builder, AddressSpaceOption.Builder, BooleanOption.Builder, HexLongOption.Builder, IntegerOption.Builder, StringOption.Builder
public abstract class AbstractOptionBuilder<ValueType, OptionType extends AbstractOption<ValueType>>
extends Object
A class to build
AbstractOptions-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract OptionTypebuild()Returns a newAbstractOptionbased on the current state of thisAbstractOptionBuilder.Sets theOption's command line argumentdescription(String desc) Sets theOption's descriptionSets theOption's grouphidden(boolean hide) Sets whether or not theOptionis hiddenSets theOption's state keySets theOption's value
-
Field Details
-
name
-
group
-
value
-
commandLineArgument
-
description
-
stateKey
-
-
Constructor Details
-
AbstractOptionBuilder
Creates a newAbstractOptionBuilder- Parameters:
name- The name of theOptionto be built
-
-
Method Details
-
group
Sets theOption's group- Parameters:
g- TheOption's group- Returns:
- This
AbstractOptionBuilder
-
value
Sets theOption's value- Parameters:
v- TheOption's value- Returns:
- This
AbstractOptionBuilder
-
commandLineArgument
Sets theOption's command line argument- Parameters:
arg- TheOption's command line argument- Returns:
- This
AbstractOptionBuilder
-
description
Sets theOption's description- Parameters:
desc- TheOption's description- Returns:
- This
AbstractOptionBuilder
-
stateKey
Sets theOption's state key- Parameters:
key- TheOption's state key- Returns:
- This
AbstractOptionBuilder
-
build
Returns a newAbstractOptionbased on the current state of thisAbstractOptionBuilder.- Returns:
- a new
AbstractOptionbased on the current state of thisAbstractOptionBuilder
-