|
||||||||||
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
protected abstract class Struct.NumberField
Base class for all Number structure fields.
Constructor Summary | |
---|---|
protected |
Struct.NumberField(int size)
|
protected |
Struct.NumberField(int size,
int align)
|
protected |
Struct.NumberField(int size,
int align,
Struct.Offset offset)
|
protected |
Struct.NumberField(int size,
Struct.Offset offset)
|
Method Summary | |
---|---|
double |
doubleValue()
Returns an float representation of this Number. |
float |
floatValue()
Returns an float representation of this Number. |
MemoryIO |
getMemoryIO()
Gets the MemoryIO used to read/write this Member. |
long |
longValue()
Returns an long representation of this Number. |
long |
offset()
Gets the offset within the structure for this field. |
abstract void |
set(Number value)
Sets the field to a new value. |
Struct |
struct()
Gets the Struct this Member is in. |
String |
toString()
Returns a string representation of this Address . |
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 |
Constructor Detail |
---|
protected Struct.NumberField(int size)
protected Struct.NumberField(int size, Struct.Offset offset)
protected Struct.NumberField(int size, int align, Struct.Offset offset)
protected Struct.NumberField(int size, int align)
Method Detail |
---|
public final MemoryIO getMemoryIO()
getMemoryIO
in interface Struct.Member
public final Struct struct()
struct
in interface Struct.Member
public final long offset()
offset
in interface Struct.Member
public abstract void set(Number value)
value
- The new value.public double doubleValue()
float
representation of this Number.
doubleValue
in class Number
float
value for this Number.public float floatValue()
float
representation of this Number.
floatValue
in class Number
float
value for this Number.public long longValue()
long
representation of this Number.
longValue
in class Number
long
value for this Number.public String toString()
Address
.
toString
in class Object
Address
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |