|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.smardec.j2native.Argument | +--com.smardec.j2native.NumericArgument | +--com.smardec.j2native.FloatArgument | +--com.smardec.j2native.SimpleFloat
SimpleFloat
represents float value and type.
Field Summary |
Fields inherited from class com.smardec.j2native.Argument |
JAVA_SIDE, NATIVE_SIDE |
Constructor Summary | |
SimpleFloat()
Constructs a SimpleFloat object with a zero value. |
|
SimpleFloat(float value)
Constructs a SimpleFloat object with a specified value. |
Method Summary | |
protected void |
bits2Value(long bits)
Sets the value by its bit representation. |
int |
getLength()
Returns length in bytes. |
protected boolean |
isSigned()
Shows if number is signed |
protected long |
value2Bits()
Returns the value as bit representation. |
Methods inherited from class com.smardec.j2native.FloatArgument |
booleanValue, byteValue, doubleValue, floatValue, getResultFlags, intValue, isFixedLength, isFloat, longValue, setValue, shortValue |
Methods inherited from class com.smardec.j2native.NumericArgument |
fromBytesValue, read, readFromStack, toBytesValue, toBytesValue, write, writeToStack |
Methods inherited from class com.smardec.j2native.Argument |
clone, finalize, free, getAlignedLength, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleFloat()
SimpleFloat
object with a zero value.
public SimpleFloat(float value)
SimpleFloat
object with a specified value.
value
- value to setMethod Detail |
protected boolean isSigned()
NumericArgument
isSigned
in class NumericArgument
public int getLength()
Argument
getLength
in class Argument
protected long value2Bits()
NumericArgument
value2Bits
in class FloatArgument
protected void bits2Value(long bits)
NumericArgument
bits2Value
in class FloatArgument
bits
- value as bit representation
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |