|
|||||||
| 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 |
fromBytesValue, isSigned, read, readFromStack, toBytesValue, toBytesValue, write, writeToStack |
| Methods inherited from class com.smardec.j2native.Argument |
clone, finalize, free, getAlignedLength, getLength, getResultFlags, readFromRAM, restoreFromRAM, storeToRAM, update, writeToRAM |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected IntegerArgument(long value)
value - value to set| Method Detail |
public final void setValue(long value)
IntegerType
setValue in interface IntegerTypevalue - integer valuepublic final boolean isFloat()
NumericArgument
isFloat in class NumericArgumentpublic final long longValue()
NumericTypelong.
This may involve rounding or truncation.
longValue in interface NumericTypelong.public final int intValue()
NumericTypeint.
This may involve rounding or truncation.
intValue in interface NumericTypeint.public final short shortValue()
NumericTypeshort.
This may involve rounding or truncation.
shortValue in interface NumericTypeshort.public final byte byteValue()
NumericTypebyte.
This may involve rounding or truncation.
byteValue in interface NumericTypebyte.public final boolean booleanValue()
NumericTypeboolean.
This may involve rounding or truncation.
booleanValue in interface NumericTypeboolean.public final float floatValue()
NumericTypefloat.
This may involve rounding.
floatValue in interface NumericTypefloat.public final double doubleValue()
NumericTypedouble.
This may involve rounding.
doubleValue in interface NumericTypedouble.protected long value2Bits()
NumericArgument
value2Bits in class NumericArgumentprotected void bits2Value(long bits)
NumericArgument
bits2Value in class NumericArgumentbits - value as bit representationprotected boolean isFixedLength()
ArgumentArgument is a fixed length variable.
isFixedLength in class Argumenttrue if it is so, and false otherwise
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||