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

xmog_java_dynamic Class Reference

The baseclass for types that dynamically derive the value of Java proxy items. More...

#include <xmog_java_dynamic.h>

Inheritance diagram for xmog_java_dynamic:

Inheritance graph
[legend]
List of all members.

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
virtual void set_bool (xmog_base *obj, bool b, xmog_localenv *env=NULL)=0
 Sets a bool value of a dynamic instance.
virtual void set_jboolean (xmog_base *obj, jboolean b, xmog_localenv *env=NULL)=0
 Sets a jboolean value of a dynamic instance.
virtual void set_byte (xmog_base *obj, jbyte b, xmog_localenv *env=NULL)=0
 Sets a jbyte value of a dynamic instance.
virtual void set_char (xmog_base *obj, jchar ch, xmog_localenv *env=NULL)=0
 Sets a jchar value of a dynamic instance.
virtual void set_double (xmog_base *obj, jdouble d, xmog_localenv *env=NULL)=0
 Sets a double value of a dynamic instance.
virtual void set_float (xmog_base *obj, jfloat f, xmog_localenv *env=NULL)=0
 Sets a float value of a dynamic instance.
virtual void set_int (xmog_base *obj, jint i, xmog_localenv *env=NULL)=0
 Sets an int value of a dynamic instance.
virtual void set_long (xmog_base *obj, jlong l, xmog_localenv *env=NULL)=0
 Sets a long value of a dynamic instance.
virtual void set_short (xmog_base *obj, jshort sh, xmog_localenv *env=NULL)=0
 Sets a short value of a dynamic instance.
virtual void set_jobject (xmog_base *obj, jobject o, xmog_localenv *env=NULL)=0
 Sets an object reference into a dynamic instance.

Detailed Description

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.


Member Function Documentation

virtual bool xmog_java_dynamic::get_bool xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the bool value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jbyte xmog_java_dynamic::get_byte xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the jbyte value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jchar xmog_java_dynamic::get_char xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the jchar value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jdouble xmog_java_dynamic::get_double xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the double value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jfloat xmog_java_dynamic::get_float xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the float value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jint xmog_java_dynamic::get_int xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the int value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jboolean xmog_java_dynamic::get_jboolean xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the jboolean value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jobject xmog_java_dynamic::get_jobject xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = xmog_base::GLOBAL
[pure virtual]
 

Returns the jobject value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jlong xmog_java_dynamic::get_long xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the long value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual jshort xmog_java_dynamic::get_short xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Returns the short value of a dynamic proxy.

Parameters:
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_field, and xmog_java_method.

virtual void xmog_java_dynamic::get_void xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0
[pure virtual]
 

Dynamically resolves a reference that evaluates to a void value.

This function is mostly useful for method invocations.

Parameters:
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_field, and xmog_java_method.

virtual void xmog_java_dynamic::set_bool xmog_base obj,
bool  b,
xmog_localenv env = NULL
[pure virtual]
 

Sets a bool value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_byte xmog_base obj,
jbyte  b,
xmog_localenv env = NULL
[pure virtual]
 

Sets a jbyte value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_char xmog_base obj,
jchar  ch,
xmog_localenv env = NULL
[pure virtual]
 

Sets a jchar value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_double xmog_base obj,
jdouble  d,
xmog_localenv env = NULL
[pure virtual]
 

Sets a double value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_float xmog_base obj,
jfloat  f,
xmog_localenv env = NULL
[pure virtual]
 

Sets a float value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_int xmog_base obj,
jint  i,
xmog_localenv env = NULL
[pure virtual]
 

Sets an int value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_jboolean xmog_base obj,
jboolean  b,
xmog_localenv env = NULL
[pure virtual]
 

Sets a jboolean value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_jobject xmog_base obj,
jobject  o,
xmog_localenv env = NULL
[pure virtual]
 

Sets an object reference into a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_long xmog_base obj,
jlong  l,
xmog_localenv env = NULL
[pure virtual]
 

Sets a long value of a dynamic instance.

Parameters:
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.

virtual void xmog_java_dynamic::set_short xmog_base obj,
jshort  sh,
xmog_localenv env = NULL
[pure virtual]
 

Sets a short value of a dynamic instance.

Parameters:
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.


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