Package ghidra.program.model.data
Enum DataUtilities.ClearDataMode
- java.lang.Object
-
- java.lang.Enum<DataUtilities.ClearDataMode>
-
- ghidra.program.model.data.DataUtilities.ClearDataMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DataUtilities.ClearDataMode>
- Enclosing class:
- DataUtilities
public static enum DataUtilities.ClearDataMode extends java.lang.Enum<DataUtilities.ClearDataMode>
ClearDataMode
specifies how conflicting data should be cleared when creating/re-creating data
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECK_FOR_SPACE
Ensure that data will fit before clearing a single code unit at the specified data address.CLEAR_ALL_CONFLICT_DATA
Clear all conflicting data provided data will fit within memory and not conflict with an instruction.CLEAR_ALL_UNDEFINED_CONFLICT_DATA
Clear all conflicting Undefined data provided data will fit within memory and not conflict with an instruction or other defined data.CLEAR_SINGLE_DATA
Always clear a single code unit at the data address regardless of the ability for the desired data-type to fit.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataUtilities.ClearDataMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DataUtilities.ClearDataMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHECK_FOR_SPACE
public static final DataUtilities.ClearDataMode CHECK_FOR_SPACE
Ensure that data will fit before clearing a single code unit at the specified data address.
-
CLEAR_SINGLE_DATA
public static final DataUtilities.ClearDataMode CLEAR_SINGLE_DATA
Always clear a single code unit at the data address regardless of the ability for the desired data-type to fit.
-
CLEAR_ALL_UNDEFINED_CONFLICT_DATA
public static final DataUtilities.ClearDataMode CLEAR_ALL_UNDEFINED_CONFLICT_DATA
Clear all conflicting Undefined data provided data will fit within memory and not conflict with an instruction or other defined data. Undefined refers to defined data with the Undefined data-type.- See Also:
Undefined.isUndefined(DataType)
-
CLEAR_ALL_CONFLICT_DATA
public static final DataUtilities.ClearDataMode CLEAR_ALL_CONFLICT_DATA
Clear all conflicting data provided data will fit within memory and not conflict with an instruction.
-
-
Method Detail
-
values
public static DataUtilities.ClearDataMode[] 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 (DataUtilities.ClearDataMode c : DataUtilities.ClearDataMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataUtilities.ClearDataMode 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
-
-