#include <xmog_peer_value.h>
Inheritance diagram for xmog_peer_value:


Public Types | |
| enum | { XMOG_VOID = 0, XMOG_BOOLEAN = 2, XMOG_BYTE = 4, XMOG_CHAR = 8, XMOG_DOUBLE = 16, XMOG_FLOAT = 32, XMOG_INT = 64, XMOG_LONG = 128, XMOG_SHORT = 256, XMOG_OBJECT = 512, XMOG_EXCEPTION = 1 } |
| The values that indicate the type of object that is encapsulated by an xmog_peer_value instance. More... | |
Public Member Functions | |
| xmog_peer_value () | |
| The default constructor. | |
| xmog_peer_value (const xmog_peer_value &_rhs) | |
| The copy constructor. | |
| xmog_peer_value (jobject _ref, xmog_flags flags) | |
| The constructor from an already existing Java reference. | |
| xmog_peer_value (xmog_java_array *_array, jint index) | |
| The constructor for a pere value that is an element of an array. | |
| xmog_peer_value (bool z, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a bool value. | |
| xmog_peer_value (jboolean z, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jboolean value. | |
| xmog_peer_value (jbyte b, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jbyte value. | |
| xmog_peer_value (jchar ch, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jchar value. | |
| xmog_peer_value (jdouble d, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jdouble value. | |
| xmog_peer_value (jfloat f, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jfloat value. | |
| xmog_peer_value (jint i, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jint value. | |
| xmog_peer_value (jlong j, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jlong value. | |
| xmog_peer_value (jshort s, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
Creates a peer value instance representing a jshort value. | |
| xmog_peer_value (const xmog_base &l, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
| Creates a peer value instance representing an object. | |
| xmog_peer_value (const xmog_base &exc, bool bIsExc, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL) | |
| Creates a peer value instance representing an exception (a Throwable). | |
| xmog_peer_value | operator= (const xmog_peer_value &_rhs) |
| Duplicates the reference held by the argumnent into the receiver. | |
| void | setz (bool z, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a bool value. | |
| void | setz (jboolean z, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a jboolean value. | |
| void | setb (jbyte b, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a byte value. | |
| void | setc (jchar c, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a char value. | |
| void | setd (jdouble d, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a double value. | |
| void | setf (jfloat f, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a float value. | |
| void | seti (jint i, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to an int value. | |
| void | setj (jlong j, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a long value. | |
| void | sets (jshort s, xmog_localenv *env, xmog_flags flags) |
A utility method to set the peer value to a short value. | |
| void | setl (const xmog_base &l, xmog_localenv *env, xmog_flags flags) |
| A utility method to set the peer value to an reference type value. | |
| void | sete (const xmog_base &e, xmog_localenv *env, xmog_flags flags) |
| A utility method to set the peer value to an exception value. | |
| void | printToString (FILE *file, xmog_localenv *env) |
| A utility method for debugging. | |
Static Public Member Functions | |
| static void | startHeapMonitor (jlong collector, jint highWaterMark, jlong interval) |
| Starts a heap monitor for .NET runtime environments. | |
| static void | stopHeapMonitor () |
| Stops the heap monitor for .NET runtime environments. | |
| static int | register_native (xmog_localenv *env=NULL) |
| A framework method that registers the native method(s) of the corresponding Java class. | |
| static xmog_java_class * | get_java_class (xmog_localenv *env=NULL) |
| Returns the class instance representing the peer.Value type. | |
| static jobject | get_stack_trace (xmog_localenv *env, jlong exc, jint size) |
| An method returning the stacktrace string upto a certain length. | |
| static jobject | get_ifc_names (xmog_localenv *env, jlong inst) |
| An method returning an array of classnames, representing the interfaces implemented by the given object. | |
Public Attributes | |
| xmog_jboolean | z |
A field that allows access to the instance's bool value. | |
| xmog_byte | b |
A field that allows access to the instance's jbyte value. | |
| xmog_char | c |
A field that allows access to the instance's jchar value. | |
| xmog_double | d |
A field that allows access to the instance's jdouble value. | |
| xmog_float | f |
A field that allows access to the instance's jfloat value. | |
| xmog_int | i |
A field that allows access to the instance's jint value. | |
| xmog_long | j |
A field that allows access to the instance's jlong value. | |
| xmog_short | s |
A field that allows access to the instance's jshort value. | |
| xmog_java_ref | l |
A field that allows access to the instance's reference (jobject) value. | |
| xmog_int | type |
| A field that allows access to the instance's type. | |
This class helps us pass values polymorphically between C++ and Java. Think of it as a more powerful wrapper around JNI's jvalue type. This type adds housekeeping that allows us to pass information about the type of contained data, something that is not necessary in jvalue because it is only used in situations where the caller knows what data to expect.
|
|
|
The copy constructor.
|
|
||||||||||||
|
The constructor from an already existing Java reference.
|
|
||||||||||||
|
The constructor for a pere value that is an element of an array.
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing a
|
|
||||||||||||||||
|
Creates a peer value instance representing an object.
|
|
||||||||||||||||||||
|
Creates a peer value instance representing an exception (a Throwable).
|
|
||||||||||||
|
An method returning an array of classnames, representing the interfaces implemented by the given object. This method is only used internally by by .NET bindings. |
|
|
Returns the class instance representing the peer.Value type.
|
|
||||||||||||||||
|
An method returning the stacktrace string upto a certain length. This method is only used internally by by .NET bindings. |
|
|
Duplicates the reference held by the argumnent into the receiver.
|
|
||||||||||||
|
A utility method for debugging.
|
|
|
A framework method that registers the native method(s) of the corresponding Java class.
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to an exception value.
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to an
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to an reference type value.
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
A utility method to set the peer value to a
This method also sets the
|
|
||||||||||||||||
|
Starts a heap monitor for .NET runtime environments.
|
1.4.1