|
|||||||
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.DelegatedArgument | +--com.smardec.j2native.Int
Int
represents a platform-dependent signed integer value and type,
i.e. on 32-bits platform Int
works as Int32
.
Field Summary |
Fields inherited from class com.smardec.j2native.Argument |
JAVA_SIDE, NATIVE_SIDE |
Constructor Summary | |
Int()
Constructs a Int object with a zero value. |
|
Int(long value)
Constructs a Int object with a specified value. |
Method Summary | |
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. |
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 . |
Methods inherited from class com.smardec.j2native.DelegatedArgument |
finalize, free, fromBytesValue, getAlignedLength, getInternalValue, getLength, read, readFromRAM, readFromStack, restoreFromRAM, setInternalValue, storeToRAM, toBytesValue, toBytesValue, write, writeToRAM, writeToStack |
Methods inherited from class com.smardec.j2native.Argument |
clone, getResultFlags, update |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Int()
Int
object with a zero value.
public Int(long value)
Int
object with a specified value.
value
- value to setMethod Detail |
public void setValue(long value)
IntegerType
setValue
in interface IntegerType
value
- integer valuepublic long longValue()
NumericType
long
.
This may involve rounding or truncation.
longValue
in interface NumericType
long
.public int intValue()
NumericType
int
.
This may involve rounding or truncation.
intValue
in interface NumericType
int
.public short shortValue()
NumericType
short
.
This may involve rounding or truncation.
shortValue
in interface NumericType
short
.public byte byteValue()
NumericType
byte
.
This may involve rounding or truncation.
byteValue
in interface NumericType
byte
.public boolean booleanValue()
NumericType
boolean
.
This may involve rounding or truncation.
booleanValue
in interface NumericType
boolean
.public float floatValue()
NumericType
float
.
This may involve rounding.
floatValue
in interface NumericType
float
.public double doubleValue()
NumericType
double
.
This may involve rounding.
doubleValue
in interface NumericType
double
.protected boolean isFixedLength()
Argument
Argument
is a fixed length variable.
isFixedLength
in class DelegatedArgument
true
if it is so, and false
otherwise
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |