com.kenai.jaffl.struct
protected abstract class Struct.EnumField<E> extends Struct.NumberField
Parameters:
Field Summary | |
---|---|
protected Class<E> | enumClass |
Constructor Summary | |
---|---|
EnumField(int size, Class<E> enumClass)
Constructs a new Enum field.
| |
EnumField(int size, Struct.Offset offset, Class<E> enumClass)
Constructs a new Enum field.
| |
EnumField(int size, int align, Class<E> enumClass)
Constructs a new Enum field. | |
EnumField(int size, int align, Struct.Offset offset, Class<E> enumClass)
Constructs a new Enum field. |
Method Summary | |
---|---|
abstract E | get()
Gets a java Enum value representing the native integer value.
|
Parameters: size the size of the native integer. enumClass the Enum class.
Parameters: size the size of the native integer. * @param offset the offset from the start of the struct memory area. enumClass the Enum class.
Parameters: size the size of the native integer. align the minimum alignment of the native integer enumClass the Enum class.
Parameters: size the size of the native integer. align the minimum alignment of the native integer offset the offset from the start of the struct memory area enumClass the Enum class.
Returns: a java Enum value.