E - the type of Enumprotected abstract class Struct.EnumField<E> extends Struct.NumberField
| Constructor and Description |
|---|
Struct.EnumField(int size,
java.lang.Class<E> enumClass)
Constructs a new Enum field.
|
Struct.EnumField(int size,
int align,
java.lang.Class<E> enumClass)
Constructs a new Enum field.
|
Struct.EnumField(int size,
int align,
Struct.Offset offset,
java.lang.Class<E> enumClass)
Constructs a new Enum field.
|
Struct.EnumField(int size,
Struct.Offset offset,
java.lang.Class<E> enumClass)
Constructs a new Enum field.
|
| Modifier and Type | Method and Description |
|---|---|
abstract E |
get()
Gets a java Enum value representing the native integer value.
|
java.lang.String |
toString()
Returns a string representation of this field.
|
doubleValue, floatValue, getMemoryIO, longValue, offset, set, structprotected final java.lang.Class<E> enumClass
public Struct.EnumField(int size,
java.lang.Class<E> enumClass)
size - the size of the native integer.enumClass - the Enum class.public Struct.EnumField(int size,
Struct.Offset offset,
java.lang.Class<E> enumClass)
size - the size of the native integer.
* @param offset the offset from the start of the struct memory area.enumClass - the Enum class.public Struct.EnumField(int size,
int align,
java.lang.Class<E> enumClass)
size - the size of the native integer.align - the minimum alignment of the native integerenumClass - the Enum class.public Struct.EnumField(int size,
int align,
Struct.Offset offset,
java.lang.Class<E> enumClass)
size - the size of the native integer.align - the minimum alignment of the native integeroffset - the offset from the start of the struct memory areaenumClass - the Enum class.public abstract E get()
public final java.lang.String toString()
toString in class Struct.NumberField