Package ghidra.framework.options
Enum OptionType
- java.lang.Object
-
- java.lang.Enum<OptionType>
-
- ghidra.framework.options.OptionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<OptionType>
public enum OptionType extends java.lang.Enum<OptionType>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OptionType.ByteArrayStringAdapter
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN_TYPE
BYTE_ARRAY_TYPE
COLOR_TYPE
CUSTOM_TYPE
DATE_TYPE
DOUBLE_TYPE
ENUM_TYPE
FILE_TYPE
FLOAT_TYPE
FONT_TYPE
INT_TYPE
KEYSTROKE_TYPE
LONG_TYPE
NO_TYPE
STRING_TYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convertObjectToString(java.lang.Object object)
java.lang.Object
convertStringToObject(java.lang.String string)
static OptionType
getOptionType(java.lang.Object obj)
java.lang.Class<?>
getValueClass()
static OptionType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static OptionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INT_TYPE
public static final OptionType INT_TYPE
-
LONG_TYPE
public static final OptionType LONG_TYPE
-
STRING_TYPE
public static final OptionType STRING_TYPE
-
DOUBLE_TYPE
public static final OptionType DOUBLE_TYPE
-
BOOLEAN_TYPE
public static final OptionType BOOLEAN_TYPE
-
DATE_TYPE
public static final OptionType DATE_TYPE
-
NO_TYPE
public static final OptionType NO_TYPE
-
FLOAT_TYPE
public static final OptionType FLOAT_TYPE
-
ENUM_TYPE
public static final OptionType ENUM_TYPE
-
CUSTOM_TYPE
public static final OptionType CUSTOM_TYPE
-
BYTE_ARRAY_TYPE
public static final OptionType BYTE_ARRAY_TYPE
-
FILE_TYPE
public static final OptionType FILE_TYPE
-
COLOR_TYPE
public static final OptionType COLOR_TYPE
-
FONT_TYPE
public static final OptionType FONT_TYPE
-
KEYSTROKE_TYPE
public static final OptionType KEYSTROKE_TYPE
-
-
Method Detail
-
values
public static OptionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OptionType c : OptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OptionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
convertStringToObject
public java.lang.Object convertStringToObject(java.lang.String string)
-
convertObjectToString
public java.lang.String convertObjectToString(java.lang.Object object)
-
getValueClass
public java.lang.Class<?> getValueClass()
-
getOptionType
public static OptionType getOptionType(java.lang.Object obj)
-
-