j2native |
AnsiString |
Argument |
ArrayArgument |
ArrayType |
Bool |
Callback |
Char |
Const |
DelegatedArgument |
DoubleFloat |
FloatArgument |
FloatType |
Function |
FunctionExecutionException |
FunctionNotFoundException |
IllegalMemoryAccessException |
Int |
Int16 |
Int32 |
Int64 |
Int8 |
IntegerArgument |
IntegerType |
J2NativeContext |
Library |
LibraryLoader |
LibraryNotFoundException |
MemoryException |
NumericArgument |
NumericType |
OutOnly |
Pointer |
Pointer.Const |
Pointer.OutOnly |
Pointer.Void |
PointerArgument |
PointerType |
SimpleFloat |
StringType |
StructuralArgument |
Structure |
TypedPointer |
UInt |
UInt16 |
UInt32 |
UInt8 |
Union |
WideChar |
WideString |
ZeroTerminatedString |
| |
com.smardec.j2native
Class Int
java.lang.Object
|
+--com.smardec.j2native.Argument
|
+--com.smardec.j2native.DelegatedArgument
|
+--com.smardec.j2native.Int
- All Implemented Interfaces:
- java.lang.Cloneable, IntegerType, NumericType
- public class Int
- extends DelegatedArgument
- implements IntegerType
Int represents a platform-dependent signed integer value and type,
i.e. on 32-bits platform Int works as Int32 .
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Int
public Int()
- Constructs a
Int object with a zero value.
Int
public Int(long value)
- Constructs a
Int object with a specified value.
- Parameters:
- value - value to set
setValue
public void setValue(long value)
- Description copied from interface: IntegerType
- Sets an integer value
- Specified by:
- setValue in interface IntegerType
- Parameters:
- value - integer value
longValue
public long longValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as a
long .
This may involve rounding or truncation.
- Specified by:
- longValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
long .
intValue
public int intValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as an
int .
This may involve rounding or truncation.
- Specified by:
- intValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
int .
shortValue
public short shortValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as a
short .
This may involve rounding or truncation.
- Specified by:
- shortValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
short .
byteValue
public byte byteValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as a
byte .
This may involve rounding or truncation.
- Specified by:
- byteValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
byte .
booleanValue
public boolean booleanValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as a
boolean .
This may involve rounding or truncation.
- Specified by:
- booleanValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
boolean .
floatValue
public float floatValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as a
float .
This may involve rounding.
- Specified by:
- floatValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
float .
doubleValue
public double doubleValue()
- Description copied from interface: NumericType
- Returns the value of the specified number as a
double .
This may involve rounding.
- Specified by:
- doubleValue in interface NumericType
- Returns:
- the numeric value represented by this object after conversion
to type
double .
isFixedLength
protected boolean isFixedLength()
- Description copied from class: Argument
- Identify if
Argument is a fixed length variable.
- Overrides:
- isFixedLength in class DelegatedArgument
- Returns:
true if it is so, and false otherwise
|
|
|