|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
com.kenai.jaffl.struct.Struct.NumberField
com.kenai.jaffl.struct.Struct.EnumField<E>
E
- the type of Enum
protected abstract class Struct.EnumField<E>
Base for all the Enum fields.
Field Summary | |
---|---|
protected Class<E> |
enumClass
|
Constructor Summary | |
---|---|
Struct.EnumField(int size,
Class<E> enumClass)
Constructs a new Enum field. |
|
Struct.EnumField(int size,
int align,
Class<E> enumClass)
Constructs a new Enum field. |
|
Struct.EnumField(int size,
int align,
Struct.Offset offset,
Class<E> enumClass)
Constructs a new Enum field. |
|
Struct.EnumField(int size,
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. |
String |
toString()
Returns a string representation of this field. |
Methods inherited from class com.kenai.jaffl.struct.Struct.NumberField |
---|
doubleValue, floatValue, getMemoryIO, longValue, offset, set, struct |
Methods inherited from class java.lang.Number |
---|
byteValue, intValue, shortValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final Class<E> enumClass
Constructor Detail |
---|
public Struct.EnumField(int size, Class<E> enumClass)
size
- the size of the native integer.enumClass
- the Enum class.public Struct.EnumField(int size, Struct.Offset offset, 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, 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, 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.Method Detail |
---|
public abstract E get()
public final String toString()
toString
in class Struct.NumberField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |