|
||||||||||
| 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
public abstract class Struct.NumberField
Base class for all Number structure fields.
| Field Summary | |
|---|---|
protected Type |
type
|
| Constructor Summary | |
|---|---|
protected |
Struct.NumberField(NativeType type)
|
protected |
Struct.NumberField(NativeType type,
Struct.Offset offset)
|
protected |
Struct.NumberField(TypeAlias type)
|
protected |
Struct.NumberField(TypeAlias type,
Struct.Offset offset)
|
| Method Summary | |
|---|---|
byte |
byteValue()
Returns a byte representation of this Number. |
double |
doubleValue()
Returns an float representation of this Number. |
float |
floatValue()
Returns an float representation of this Number. |
Pointer |
getMemory()
Gets the memory object used to store this Member |
abstract int |
intValue()
Returns a int representation of this Number. |
long |
longValue()
Returns a long representation of this Number. |
long |
offset()
Gets the offset within the structure for this field. |
abstract void |
set(java.lang.Number value)
Sets the field to a new value. |
short |
shortValue()
Returns a short representation of this Number. |
Struct |
struct()
Gets the Struct this Member is in. |
java.lang.String |
toString()
Returns a string representation of this Address. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final Type type
| Constructor Detail |
|---|
protected Struct.NumberField(NativeType type)
protected Struct.NumberField(NativeType type,
Struct.Offset offset)
protected Struct.NumberField(TypeAlias type)
protected Struct.NumberField(TypeAlias type,
Struct.Offset offset)
| Method Detail |
|---|
public final Pointer getMemory()
Struct.MemberMember
Pointerpublic final Struct struct()
public final long offset()
public abstract void set(java.lang.Number value)
value - The new value.public double doubleValue()
float representation of this Number.
float value for this Number.public float floatValue()
float representation of this Number.
float value for this Number.public byte byteValue()
byte representation of this Number.
byte value for this Number.public short shortValue()
short representation of this Number.
short value for this Number.public abstract int intValue()
int representation of this Number.
int value for this Number.public long longValue()
long representation of this Number.
long value for this Number.public java.lang.String toString()
Address.
toString in class java.lang.ObjectAddress.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||