Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

com::codemesh::peer::Value Class Reference
[Java Peer Framework]

A generic value object that is used to polymorphically represent the different Java types. More...

List of all members.

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)


Detailed Description

A generic value object that is used to polymorphically represent the different Java types.

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.


Member Function Documentation

static final int com::codemesh::peer::Value::callback Object  peer,
long  pNative,
long  pCbFunc,
Value  retexc,
Value[]  args
[inline, static]
 

The generic callback function that calls a native method.

Parameters:
peer the Java instance that is registered as the callback recipient.
pNative the native instance that will actually handle the call.
pCbFunc the function pointer that will be called.
retexc the holder of return value or exception that was thrown.
args the arguments passed to the method.
Returns:


The documentation for this class was generated from the following file:
Generated on Wed May 31 14:01:37 2006 for Shared Codemesh Runtime Library API Reference by  doxygen 1.4.1