Public Member Functions | |
| Value (boolean z) | |
| Value (byte b) | |
| Value (char c) | |
| Value (double d) | |
| Value (float f) | |
| Value (int i) | |
| Value (long j) | |
| Value (short s) | |
| Value (Object l) | |
| Value (Exception e, boolean bIsException) | |
| String | toString () |
Static Public Member Functions | |
| static final int | callback (Object peer, long pNative, long pCbFunc, Value retexc, Value[] args) |
| The generic callback function that calls a native method. | |
| static int | resultType (char t) |
| static RuntimeException | wrapIllegalException (Throwable th) |
Public Attributes | |
| int | type = VOID |
| boolean | z |
| byte | b |
| char | c |
| double | d |
| float | f |
| int | i |
| long | j |
| short | s |
| Object | l |
Static Public Attributes | |
| static final int | VOID = 0 |
| static final int | BOOLEAN = 2 |
| static final int | BYTE = 4 |
| static final int | CHAR = 8 |
| static final int | DOUBLE = 16 |
| static final int | FLOAT = 32 |
| static final int | INT = 64 |
| static final int | LONG = 128 |
| static final int | SHORT = 256 |
| static final int | OBJECT = 512 |
| static final int | EXCEPTION = 1 |
Static Protected Member Functions | |
| static void | startHeapMonitor (long collector, int highWaterMark, long interval) |
| static void | stopHeapMonitor () |
Static Package Functions | |
| static final native int | callback1 (Object peer, long pNative, long pCbFunc, Value retexc, Value[] args) |
| static final native int | callback2 (Object peer, long pCbFunc, Value retexc, Value[] args) |
We use this type mostly in connection with callbacks, when we have to exchange Java values values (as arguments or as return values) through a generic entry point.
|
||||||||||||||||||||||||
|
The generic callback function that calls a native method.
|
1.4.1