|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjnr.ffi.Struct.Member
jnr.ffi.Struct.NumberField
jnr.ffi.Struct.EnumField<E>
E - the type of Enumprotected abstract class Struct.EnumField<E>
Base for all the Enum fields.
| Field Summary | |
|---|---|
protected java.lang.Class<E> |
enumClass
|
| Fields inherited from class jnr.ffi.Struct.NumberField |
|---|
type |
| Constructor Summary | |
|---|---|
Struct.EnumField(NativeType type,
java.lang.Class<E> enumClass)
Constructs a new Enum field. |
|
| Method Summary | |
|---|---|
abstract E |
get()
Gets a java Enum value representing the native integer value. |
java.lang.String |
toString()
Returns a string representation of this field. |
| Methods inherited from class jnr.ffi.Struct.NumberField |
|---|
byteValue, doubleValue, floatValue, getMemory, intValue, longValue, offset, set, shortValue, struct |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.Class<E> enumClass
| Constructor Detail |
|---|
public Struct.EnumField(NativeType type,
java.lang.Class<E> enumClass)
type - the native type of the enum.enumClass - the Enum class.| Method Detail |
|---|
public abstract E get()
public final java.lang.String toString()
toString in class Struct.NumberField
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||