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 Int16
java.lang.Object
|
+--com.smardec.j2native.Argument
|
+--com.smardec.j2native.NumericArgument
|
+--com.smardec.j2native.IntegerArgument
|
+--com.smardec.j2native.Int16
- All Implemented Interfaces:
- java.lang.Cloneable, IntegerType, NumericType
- public class Int16
- extends IntegerArgument
Int16 represents a 16-bit integer value and type.
Constructor Summary |
Int16()
Constructs a Int16 object with a zero value. |
Int16(short value)
Constructs a Int16 object with a specified value. |
Method Summary |
int |
getLength()
Returns length in bytes. |
protected boolean |
isSigned()
Shows if number is signed |
Methods inherited from class com.smardec.j2native.IntegerArgument |
bits2Value, booleanValue, byteValue, doubleValue, floatValue, intValue, isFixedLength, isFloat, longValue, setValue, shortValue, value2Bits |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Int16
public Int16()
- Constructs a
Int16 object with a zero value.
Int16
public Int16(short value)
- Constructs a
Int16 object with a specified value.
- Parameters:
- value - value to set
isSigned
protected boolean isSigned()
- Description copied from class: NumericArgument
- Shows if number is signed
- Specified by:
- isSigned in class NumericArgument
getLength
public int getLength()
- Description copied from class: Argument
- Returns length in bytes.
- Specified by:
- getLength in class Argument
- Returns:
- an int
|
|
|