Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | List of all members
xmog_java_dynamic Class Referenceabstract

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]

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

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

◆ get_bool()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_byte()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_char()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_double()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_float()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_int()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_jboolean()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_jobject()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is xmog_base::GLOBAL.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_long()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_short()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ get_void()

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
objthe object which we're going to use to derive the value the dynamic value. This is typically a proxy instance representing a Java object.
argsthe 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.
envthe 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.
flagsthe processing flags for the operation. The default value is 0.

Implemented in xmog_java_element, xmog_java_method, and xmog_java_field.

◆ set_bool()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
bthe new value.
envthe 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.

◆ set_byte()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
bthe new value.
envthe 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.

◆ set_char()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
chthe new value.
envthe 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.

◆ set_double()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
dthe new value.
envthe 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.

◆ set_float()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
fthe new value.
envthe 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.

◆ set_int()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
ithe new value.
envthe 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.

◆ set_jboolean()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
bthe new value.
envthe 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.

◆ set_jobject()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
othe new value.
envthe 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.

◆ set_long()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
lthe new value.
envthe 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.

◆ set_short()

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
objthe object which we're going to use as the target for the dynamic value. This is typically a proxy instance representing a Java object.
shthe new value.
envthe 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:

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.