Package ghidra.framework.options
Enum Class OptionType
- All Implemented Interfaces:
Serializable
,Comparable<OptionType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertObjectToString
(Object object) convertStringToObject
(String string) static OptionType
getOptionType
(Object obj) Class
<?> boolean
isCompatible
(Object object) Return true if the give value is of the correct type for this option type.static OptionType
Returns the enum constant of this class with the specified name.static OptionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INT_TYPE
-
LONG_TYPE
-
STRING_TYPE
-
DOUBLE_TYPE
-
BOOLEAN_TYPE
-
DATE_TYPE
-
NO_TYPE
-
FLOAT_TYPE
-
ENUM_TYPE
-
CUSTOM_TYPE
-
BYTE_ARRAY_TYPE
-
FILE_TYPE
-
COLOR_TYPE
-
FONT_TYPE
-
KEYSTROKE_TYPE
-
ACTION_TRIGGER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
convertStringToObject
-
convertObjectToString
-
isCompatible
Return true if the give value is of the correct type for this option type. Note that a value of null is compatible with any class type since it is an acceptable value for any class type.- Parameters:
object
- the object to see if it is compatible with this option type- Returns:
- true if the give value is of the correct type for this option type.
-
getValueClass
-
getOptionType
-