Package ghidra.program.model.data
Enum Composite.AlignmentType
- java.lang.Object
-
- java.lang.Enum<Composite.AlignmentType>
-
- ghidra.program.model.data.Composite.AlignmentType
-
- All Implemented Interfaces:
Composite.NamedAlignment
,java.io.Serializable
,java.lang.Comparable<Composite.AlignmentType>
- Enclosing interface:
- Composite
public static enum Composite.AlignmentType extends java.lang.Enum<Composite.AlignmentType> implements Composite.NamedAlignment
AlignmentType defined the three states for the type of alignment of a composite data type. This can be default aligned, machine aligned or aligned by value.
This controls how this data type will be aligned within other data types.
Default Aligned means to determine this data type's alignment based upon the alignments of its components. This is controlled by the Data Organization that is provided by its data type manager. If there is no data type manager then a default data organization is used.
Machine Aligned means this data type's alignment will use a minimum alignment that is the machine alignment specified by the data organization.
Align By Value means that a "minimum alignment value", which is a power of 2 and specified elsewhere, will affect the alignment so that it will be at least the indicated value and will be a multiple of the minimum value and of the default value.
Note: If the data organization specifies a maximum alignment, other than 0, then the alignment value will not be allowed to exceed the maximum alignment for any of these types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIGNED_BY_VALUE
DEFAULT_ALIGNED
MACHINE_ALIGNED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
toString()
static Composite.AlignmentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Composite.AlignmentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT_ALIGNED
public static final Composite.AlignmentType DEFAULT_ALIGNED
-
MACHINE_ALIGNED
public static final Composite.AlignmentType MACHINE_ALIGNED
-
ALIGNED_BY_VALUE
public static final Composite.AlignmentType ALIGNED_BY_VALUE
-
-
Method Detail
-
values
public static Composite.AlignmentType[] 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 (Composite.AlignmentType c : Composite.AlignmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Composite.AlignmentType 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
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceComposite.NamedAlignment
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Composite.AlignmentType>
-
-