|
|||||||
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
FloatArgument
is a base class for all floating-point types.
Field Summary |
Fields inherited from class com.smardec.j2native.Argument |
JAVA_SIDE, NATIVE_SIDE |
Constructor Summary | |
protected |
FloatArgument(double value)
Constructs a floating-point object with a specified value |
Method Summary | |
protected void |
bits2Value(long bits)
Sets the value by its bit representation. |
boolean |
booleanValue()
Returns the value of the specified number as a boolean . |
byte |
byteValue()
Returns the value of the specified number as a byte . |
double |
doubleValue()
Returns the value of the specified number as a double . |
float |
floatValue()
Returns the value of the specified number as a float . |
protected int |
getResultFlags()
Returns result specific flags. |
int |
intValue()
Returns the value of the specified number as an int . |
protected boolean |
isFixedLength()
Identify if Argument is a fixed length variable. |
boolean |
isFloat()
Shows if number is of floating-point type |
long |
longValue()
Returns the value of the specified number as a long . |
void |
setValue(double value)
Sets a floating-point value. |
short |
shortValue()
Returns the value of the specified number as a short . |
protected long |
value2Bits()
Returns the value as bit representation. |
Methods inherited from class com.smardec.j2native.NumericArgument |
fromBytesValue, isSigned, read, readFromStack, toBytesValue, toBytesValue, write, writeToStack |
Methods inherited from class com.smardec.j2native.Argument |
clone, finalize, free, getAlignedLength, getLength, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FloatArgument(double value)
value
- value to setMethod Detail |
public final void setValue(double value)
FloatType
setValue
in interface FloatType
value
- floating-point valuepublic final boolean isFloat()
NumericArgument
isFloat
in class NumericArgument
public final long longValue()
NumericType
long
.
This may involve rounding or truncation.
longValue
in interface NumericType
long
.public final int intValue()
NumericType
int
.
This may involve rounding or truncation.
intValue
in interface NumericType
int
.public final short shortValue()
NumericType
short
.
This may involve rounding or truncation.
shortValue
in interface NumericType
short
.public final byte byteValue()
NumericType
byte
.
This may involve rounding or truncation.
byteValue
in interface NumericType
byte
.public final boolean booleanValue()
NumericType
boolean
.
This may involve rounding or truncation.
booleanValue
in interface NumericType
boolean
.public final float floatValue()
NumericType
float
.
This may involve rounding.
floatValue
in interface NumericType
float
.public final double doubleValue()
NumericType
double
.
This may involve rounding.
doubleValue
in interface NumericType
double
.protected long value2Bits()
NumericArgument
value2Bits
in class NumericArgument
protected void bits2Value(long bits)
NumericArgument
bits2Value
in class NumericArgument
bits
- value as bit representationprotected boolean isFixedLength()
Argument
Argument
is a fixed length variable.
isFixedLength
in class Argument
true
if it is so, and false
otherwiseprotected int getResultFlags()
Argument
getResultFlags
in class Argument
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |