Codemesh Runtime v3 C++ API Reference  3.9.205
Public Member Functions | Static Public Attributes | List of all members
xmog_java_element Class Reference

A class implementing the xmog_java_dynamic interface for accessing Java array elements via JNI or Codemesh's remoting protocol. More...

#include <xmog_java_array.h>

Inheritance diagram for xmog_java_element:
Inheritance graph
[legend]
Collaboration diagram for xmog_java_element:
Collaboration graph
[legend]

Public Member Functions

 xmog_java_element ()
 The default constructor.
 
 ~xmog_java_element ()
 Removes the field instance from the declaring class' list of fields.
 
virtual bool get_bool (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a boolean array element. More...
 
virtual jboolean get_jboolean (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a boolean array element. More...
 
virtual jbyte get_byte (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a byte array element. More...
 
virtual jchar get_char (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a char array element. More...
 
virtual jdouble get_double (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a double array element. More...
 
virtual jfloat get_float (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a float array element. More...
 
virtual jint get_int (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of an int array element. More...
 
virtual jlong get_long (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a long array element. More...
 
virtual jshort get_short (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Returns the value of a short array element. More...
 
virtual jobject get_jobject (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=xmog_base::GLOBAL)
 Returns the value of an object array element. More...
 
virtual void get_void (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0)
 Not implemented for this type. More...
 
virtual void set_bool (xmog_base *obj, bool b, xmog_localenv *env=NULL)
 Sets the value of a boolean array element. More...
 
virtual void set_jboolean (xmog_base *obj, jboolean b, xmog_localenv *env=NULL)
 Sets the value of a boolean array element. More...
 
virtual void set_byte (xmog_base *obj, jbyte b, xmog_localenv *env=NULL)
 Sets the value of a byte array element. More...
 
virtual void set_char (xmog_base *obj, jchar ch, xmog_localenv *env=NULL)
 Sets the value of a char array element. More...
 
virtual void set_double (xmog_base *obj, jdouble d, xmog_localenv *env=NULL)
 Sets the value of a double array element. More...
 
virtual void set_float (xmog_base *obj, jfloat f, xmog_localenv *env=NULL)
 Sets the value of a float array element. More...
 
virtual void set_int (xmog_base *obj, jint i, xmog_localenv *env=NULL)
 Sets the value of an int array element. More...
 
virtual void set_long (xmog_base *obj, jlong l, xmog_localenv *env=NULL)
 Sets the value of a long array element. More...
 
virtual void set_short (xmog_base *obj, jshort sh, xmog_localenv *env=NULL)
 Sets the value of a short array element. More...
 
virtual void set_jobject (xmog_base *obj, jobject o, xmog_localenv *env=NULL)
 Sets the value of an object array element. More...
 
- Public Member Functions inherited from xmog_java_dynamic
int handleException (int error_code, xmog_localenv *env=NULL)
 Handles an exception.
 

Static Public Attributes

static xmog_java_element theElement
 The single instance of this type that exists in the framework.
 

Detailed Description

A class implementing the xmog_java_dynamic interface for accessing Java array elements via JNI or Codemesh's remoting protocol.

This type is a specialization of the xmog_java_dynamic interface that knows how to get and set the elements of Java arrays. This type is a support type that is used by the actual wrapper type, for example xmog_bool. Array element proxy instances are created when the programmer uses the subscript operators on the array instance.
That element instance is then used to provide access the underlying Java array element.

Only one instance of this type is ever needed because each concrete array type calls different methods based on its type.

You should never have to use this type explicitly; it is part of the runtime framework.

Member Function Documentation

◆ get_bool()

virtual bool xmog_java_element::get_bool ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a boolean array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_byte()

virtual jbyte xmog_java_element::get_byte ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a byte array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_char()

virtual jchar xmog_java_element::get_char ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a char array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_double()

virtual jdouble xmog_java_element::get_double ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a double array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_float()

virtual jfloat xmog_java_element::get_float ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a float array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_int()

virtual jint xmog_java_element::get_int ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of an int array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_jboolean()

virtual jboolean xmog_java_element::get_jboolean ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a boolean array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_jobject()

virtual jobject xmog_java_element::get_jobject ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = xmog_base::GLOBAL 
)
virtual

Returns the value of an object array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is xmog_base::GLOBAL.

Implements xmog_java_dynamic.

◆ get_long()

virtual jlong xmog_java_element::get_long ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a long array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_short()

virtual jshort xmog_java_element::get_short ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Returns the value of a short array element.

Parameters
objpointer to the owning array element.
argsthe element index is contained in the size field.
envthe local environment used in this call. This value may be NULL.
flagsthe processing flags for the operation. The default value is 0.

Implements xmog_java_dynamic.

◆ get_void()

virtual void xmog_java_element::get_void ( xmog_base obj,
xmog_java_values args = NULL,
xmog_localenv env = NULL,
xmog_flags  flags = 0 
)
virtual

Not implemented for this type.

There are no array elements of type void.

Parameters
objunused.
argsunused.
envunused.
flagsunused.

Implements xmog_java_dynamic.

◆ set_bool()

virtual void xmog_java_element::set_bool ( xmog_base obj,
bool  b,
xmog_localenv env = NULL 
)
virtual

Sets the value of a boolean array element.

Parameters
objpointer to the owning array element.
bthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_byte()

virtual void xmog_java_element::set_byte ( xmog_base obj,
jbyte  b,
xmog_localenv env = NULL 
)
virtual

Sets the value of a byte array element.

Parameters
objpointer to the owning array element.
bthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_char()

virtual void xmog_java_element::set_char ( xmog_base obj,
jchar  ch,
xmog_localenv env = NULL 
)
virtual

Sets the value of a char array element.

Parameters
objpointer to the owning array element.
chthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_double()

virtual void xmog_java_element::set_double ( xmog_base obj,
jdouble  d,
xmog_localenv env = NULL 
)
virtual

Sets the value of a double array element.

Parameters
objpointer to the owning array element.
dthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_float()

virtual void xmog_java_element::set_float ( xmog_base obj,
jfloat  f,
xmog_localenv env = NULL 
)
virtual

Sets the value of a float array element.

Parameters
objpointer to the owning array element.
fthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_int()

virtual void xmog_java_element::set_int ( xmog_base obj,
jint  i,
xmog_localenv env = NULL 
)
virtual

Sets the value of an int array element.

Parameters
objpointer to the owning array element.
ithe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_jboolean()

virtual void xmog_java_element::set_jboolean ( xmog_base obj,
jboolean  b,
xmog_localenv env = NULL 
)
virtual

Sets the value of a boolean array element.

Parameters
objpointer to the owning array element.
bthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_jobject()

virtual void xmog_java_element::set_jobject ( xmog_base obj,
jobject  o,
xmog_localenv env = NULL 
)
virtual

Sets the value of an object array element.

Parameters
objpointer to the owning array element.
othe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_long()

virtual void xmog_java_element::set_long ( xmog_base obj,
jlong  l,
xmog_localenv env = NULL 
)
virtual

Sets the value of a long array element.

Parameters
objpointer to the owning array element.
lthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.

◆ set_short()

virtual void xmog_java_element::set_short ( xmog_base obj,
jshort  sh,
xmog_localenv env = NULL 
)
virtual

Sets the value of a short array element.

Parameters
objpointer to the owning array element.
shthe new value of the array element.
envthe local environment used in this call. This value may be NULL.

Implements xmog_java_dynamic.


The documentation for this class was generated from the following file:

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