|
|||||||
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.IntegerArgument
IntegerArgument
is a base class for all integer types.
Field Summary |
Fields inherited from class com.smardec.j2native.Argument |
JAVA_SIDE, NATIVE_SIDE |
Constructor Summary | |
protected |
IntegerArgument(long value)
Constructs an integer 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 . |
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(long value)
Sets an integer 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 |
equals, fromBytesValue, hashCode, 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 |
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected IntegerArgument(long value)
value
- value to setMethod Detail |
public final void setValue(long value)
IntegerType
setValue
in interface IntegerType
value
- integer 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
otherwise
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |