Codemesh Runtime v3 C++ API Reference
3.9.205
|
6 #ifndef xmog_java_field_inc
7 #define xmog_java_field_inc
13 #include "xmog_java_dynamic.h"
14 #include "xmog_java_string.h"
112 void *
operator new ( size_t );
118 void operator delete(
void * );
143 bool is_static()
const;
151 void set_fieldID( jfieldID fid );
156 jfieldID get_fieldID();
425 operator bool()
const;
432 bool operator * ()
const;
457 bool get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
472 void set(
bool b,
xmog_localenv * env = NULL,
bool writeThrough =
false );
531 operator jboolean()
const;
538 jboolean operator * ()
const;
563 jboolean get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
578 void set( jboolean b,
xmog_localenv * env = NULL,
bool writeThrough =
false );
637 operator jbyte()
const;
644 jbyte operator * ()
const;
702 jbyte operator ++ (
int);
708 jbyte operator -- (
int);
793 jbyte get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
808 void set( jbyte b,
xmog_localenv * env = NULL,
bool writeThrough =
false );
862 operator int()
const;
869 int operator * ()
const;
927 jchar operator ++ (
int);
933 jchar operator -- (
int);
1018 int get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
1033 void set(
int c,
xmog_localenv * env = NULL,
bool writeThrough =
false );
1084 operator jdouble()
const;
1091 jdouble operator * ()
const;
1156 jdouble get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
1171 void set( jdouble d,
xmog_localenv * env = NULL,
bool writeThrough =
false );
1222 operator jfloat()
const;
1229 jfloat operator * ()
const;
1294 jfloat get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
1309 void set( jfloat f,
xmog_localenv * env = NULL,
bool writeThrough =
false );
1360 operator jint()
const;
1367 jint operator * ()
const;
1455 jint operator ++ (
int);
1461 jint operator -- (
int);
1516 jint get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
1531 void set( jint i,
xmog_localenv * env = NULL,
bool writeThrough =
false );
1582 operator jlong()
const;
1589 jlong operator * ()
const;
1677 jlong operator ++ (
int);
1683 jlong operator -- (
int);
1738 jlong get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
1753 void set( jlong l,
xmog_localenv * env = NULL,
bool writeThrough =
false );
1804 operator jshort()
const;
1811 jshort operator * ()
const;
1899 jshort operator ++ (
int);
1905 jshort operator -- (
int);
1960 jshort get(
xmog_localenv * env = NULL,
bool readThrough =
false )
const;
1975 void set( jshort s,
xmog_localenv * env = NULL,
bool writeThrough =
false );
2029 operator FieldType()
const
2047 operator FieldType()
2073 FieldType operator = (
const char * _str )
2076 return this->
operator FieldType();
2079 # if (XMOG_SUPPORTS_WCHAR_T==1)
2080 FieldType operator = (
const XMOG_WCHAR * _wstr )
2082 xmog_java_string::from_wchar( (
xmog_base*)
this, xmog_base::GLOBAL, _wstr, -1, NULL );
2083 return this->
operator FieldType();
2087 # if (XMOG_REQUIRES_UNSIGNED_SHORT_OVERLOAD==1)
2088 FieldType operator = (
const unsigned short * _wstr )
2090 xmog_java_string::from_wchar( (
xmog_base*)
this, xmog_base::GLOBAL, (XMOG_WCHAR*)_wstr, -1, NULL );
2091 return this->
operator FieldType();
A wrapper type for byte proxies.
Definition: xmog_java_field.h:598
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.
flags
The possible flag values.
Definition: xmog_base.h:383
A wrapper type for long proxies. This type wraps the Java long type in a proxy type that uses the JNI...
Definition: xmog_java_field.h:1543
xmog_flags flags_
The flags governing the type and other housekeeping information.
Definition: xmog_base.h:370
A helper type used to convey Java arguments around inside the framework.
Definition: xmog_java_value.h:105
virtual void set_jboolean(xmog_base *obj, jboolean b, xmog_localenv *env=NULL)=0
Sets a jboolean value of a dynamic instance.
A wrapper type for int proxies. This type wraps the Java int type in a proxy type that uses the JNI j...
Definition: xmog_java_field.h:1321
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 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.
A template type that is used by field instances that might be initialized with string literals.
Definition: xmog_java_field.h:2064
A template type that is used to represent instance fields in generated proxy classes.
Definition: xmog_java_field.h:1988
FieldType operator=(const FieldType &_inst)
The assignment operator.
Definition: xmog_java_field.h:2009
xmog_field_t(xmog_java_ref *_inst, xmog_java_dynamic *_dynamic, xmog_flags _flags=xmog_base::GLOBAL)
The constructor of a field template instance.
Definition: xmog_java_field.h:1999
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_bool(xmog_base *obj, bool b, xmog_localenv *env=NULL)=0
Sets a bool value of a dynamic instance.
The baseclass for types that dynamically derive the value of Java proxy items.
Definition: xmog_java_dynamic.h:28
virtual void set_jobject_(xmog_base *_rhs, xmog_localenv *env=NULL)
Sets this instance's object reference to the given object's reference.
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 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.
A class implementing the xmog_java_dynamic interface for accessing Java fields via JNI or Codemesh's ...
Definition: xmog_java_field.h:36
static jstring from_char(const char *_str, jint _len=-1, xmog_base *_enc=NULL, xmog_localenv *env=NULL, xmog_base *pStr=NULL, char **pCache=NULL)
Returns a jstring for the given character string.
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.
XMOG_JOBJECT_HOLDER owner_
The owner or identity of the object.
Definition: xmog_base.h:337
xmog_java_dynamic * dynamic_
A pointer to an object that can access indirectly specified information.
Definition: xmog_base.h:359
FieldType operator*() const
The dereference operator converts to the FieldType type.
Definition: xmog_java_field.h:2039
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 void set_int(xmog_base *obj, jint i, xmog_localenv *env=NULL)=0
Sets an int value of a dynamic instance.
The baseclass for all proxy types in the framework.
Definition: xmog_base.h:29
A wrapper type for float proxies. This type wraps the Java float type in a proxy type that uses the J...
Definition: xmog_java_field.h:1183
virtual void set_jobject(xmog_base *obj, jobject o, xmog_localenv *env=NULL)=0
Sets an object reference into a dynamic instance.
A wrapper type for short proxies. This type wraps the Java short type in a proxy type that uses the J...
Definition: xmog_java_field.h:1765
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.
A class representing per-thread information for the integration runtime.
Definition: xmog_localenv.h:32
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 void set_float(xmog_base *obj, jfloat f, xmog_localenv *env=NULL)=0
Sets a float value of a dynamic instance.
The wrapper base type representing C++ proxy instances for Java objects.
Definition: xmog_java_ref.h:19
A wrapper type for boolean proxies.
Definition: xmog_java_field.h:492
virtual void set_short(xmog_base *obj, jshort sh, xmog_localenv *env=NULL)=0
Sets a short value of a dynamic instance.
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 copy_jobject_(xmog_base *_rhs, xmog_localenv *env=NULL)
Sets this instance's object reference to a duplicate of the given object's reference.
A wrapper type for character proxies. This type wraps the Java char type in a proxy type that uses th...
Definition: xmog_java_field.h:820
The baseclass for all Java proxy array types.
Definition: xmog_java_array.h:456
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_double(xmog_base *obj, jdouble d, xmog_localenv *env=NULL)=0
Sets a double value of a dynamic instance.
A C++ wrapper for Java types.
Definition: xmog_java_class.h:31
A wrapper type for double proxies. This type wraps the Java double type in a proxy type that uses the...
Definition: xmog_java_field.h:1045
A wrapper type for boolean proxies.
Definition: xmog_java_field.h:386
A type representing null references.
Definition: xmog_null.h:53
virtual void set_char(xmog_base *obj, jchar ch, xmog_localenv *env=NULL)=0
Sets a jchar value of a dynamic instance.
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.
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.