Codemesh Runtime v3 C++ API Reference
3.9.205
|
The baseclass for types that dynamically derive the value of Java proxy items. More...
#include <xmog_java_dynamic.h>
Public Member Functions | |
int | handleException (int error_code, xmog_localenv *env=NULL) |
Handles an exception. | |
virtual bool | get_bool (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the bool value of a dynamic proxy. More... | |
virtual jboolean | get_jboolean (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the jboolean value of a dynamic proxy. More... | |
virtual jbyte | get_byte (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the jbyte value of a dynamic proxy. More... | |
virtual jchar | get_char (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the jchar value of a dynamic proxy. More... | |
virtual jdouble | get_double (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the double value of a dynamic proxy. More... | |
virtual jfloat | get_float (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the float value of a dynamic proxy. More... | |
virtual jint | get_int (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the int value of a dynamic proxy. More... | |
virtual jlong | get_long (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the long value of a dynamic proxy. More... | |
virtual jshort | get_short (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Returns the short value of a dynamic proxy. More... | |
virtual jobject | get_jobject (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL)=0 |
Returns the jobject value of a dynamic proxy. More... | |
virtual void | get_void (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)=0 |
Dynamically resolves a reference that evaluates to a void value. More... | |
virtual void | set_bool (xmog_base *obj, bool b, xmog_localenv *env=NULL)=0 |
Sets a bool value of a dynamic instance. More... | |
virtual void | set_jboolean (xmog_base *obj, jboolean b, xmog_localenv *env=NULL)=0 |
Sets a jboolean value of a dynamic instance. More... | |
virtual void | set_byte (xmog_base *obj, jbyte b, xmog_localenv *env=NULL)=0 |
Sets a jbyte value of a dynamic instance. More... | |
virtual void | set_char (xmog_base *obj, jchar ch, xmog_localenv *env=NULL)=0 |
Sets a jchar value of a dynamic instance. More... | |
virtual void | set_double (xmog_base *obj, jdouble d, xmog_localenv *env=NULL)=0 |
Sets a double value of a dynamic instance. More... | |
virtual void | set_float (xmog_base *obj, jfloat f, xmog_localenv *env=NULL)=0 |
Sets a float value of a dynamic instance. More... | |
virtual void | set_int (xmog_base *obj, jint i, xmog_localenv *env=NULL)=0 |
Sets an int value of a dynamic instance. More... | |
virtual void | set_long (xmog_base *obj, jlong l, xmog_localenv *env=NULL)=0 |
Sets a long value of a dynamic instance. More... | |
virtual void | set_short (xmog_base *obj, jshort sh, xmog_localenv *env=NULL)=0 |
Sets a short value of a dynamic instance. More... | |
virtual void | set_jobject (xmog_base *obj, jobject o, xmog_localenv *env=NULL)=0 |
Sets an object reference into a dynamic instance. More... | |
The baseclass for types that dynamically derive the value of Java proxy items.
This type defines the interface that dynamic or indirect types need to implement. The value of a Java field for example is defined by its declaring type (or instance) and its field identifier. A concrete implementation of this class might have the knowledge of how to use JNI to read/write the value of such a field. Another concrete implementation might have the knowledge of how to use a different mechanism to read/write the field or to add lazy-write behavior to the field instance.
|
pure virtual |
Returns the bool value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the jbyte value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the jchar value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the double value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the float value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the int value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the jboolean value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the jobject value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is xmog_base::GLOBAL. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the long value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Returns the short value of a dynamic proxy.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Dynamically resolves a reference that evaluates to a void value.
This function is mostly useful for method invocations.
obj | the object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object. |
args | the arguments used to derive the dynamic value. This will tpyically be the array of parameters passed to a method or NULL. The default value is NULL. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
flags | the processing flags for the operation. The default value is 0. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Sets a bool value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
b | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.
|
pure virtual |
Sets a jbyte
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
b | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets a jchar
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
ch | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets a double
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
d | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets a float
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
f | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets an int
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
i | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets a jboolean
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
b | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets an object reference into a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
o | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets a long
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
l | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.
|
pure virtual |
Sets a short
value of a dynamic instance.
obj | the object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object. |
sh | the new value. |
env | the local environment used for the request. If NULL is passed, a local environment is acquired in the execution of the request. The default value is NULL. |
Implemented in xmog_java_element, xmog_java_field, and xmog_java_method.