#include <xmog_java_ref.h>
Inheritance diagram for xmog_java_ref:


Public Member Functions | |
| xmog_java_ref () | |
| The default constructor. | |
| xmog_java_ref (const xmog_null &) | |
The from null constructor. | |
| xmog_java_ref (xmog_java_array *_arr, jint _index) | |
| The array element constructor. | |
| xmog_java_ref (xmog_java_class *_clazz, xmog_java_dynamic *_dynamic, xmog_flags _flags) | |
| The constructor that allows the dynamic resolution of class-related information. | |
| xmog_java_ref (xmog_base *_delegate, bool _owns_delegate=true) | |
| The constructor that allows the creation of an instance to handle all requests by delegating to another instance. | |
| xmog_java_ref (xmog_java_ref *_ref, xmog_java_dynamic *_dynamic, xmog_flags _flags) | |
| The constructor that allows the dynamic resolution of instance-related information. | |
| xmog_java_ref (jobject _local, xmog_flags _flags) | |
| The constructor that sets an existing JNI reference into a wrapper instance. | |
| ~xmog_java_ref () | |
| Deletes the reference we hold to the wrapped Java instance. | |
| bool | operator== (const xmog_null &) const |
Compares the instance for equality with null. | |
| bool | operator== (const xmog_java_ref &) const |
| Compares the instance for equality with another instance. | |
| bool | operator!= (const xmog_null &) const |
Compares the instance for inequality with null. | |
| bool | operator!= (const xmog_java_ref &) const |
| Compares the instance for inequality with another instance. | |
| bool | operator! () const |
Returns true if the instance refers to null, false otherwise. | |
| jboolean | xmog_equals (const xmog_java_ref &_rhs, xmog_localenv *env=NULL) |
Returns true if both instances are null or satisfy the equality test. | |
| jint | xmog_hashCode (xmog_localenv *env=NULL) |
| Returns the Java instance's hashCode. | |
| jobject | xmog_toString (xmog_localenv *env=NULL) |
| Returns the Java instance's toString() valus as a global reference. | |
| virtual jobject | get_jobject_ (xmog_localenv *env=NULL) const |
| Returns this instance's object reference. | |
| virtual void | xmog_monitor_enter (xmog_localenv *env=NULL) const |
| Attempts to enter into a lock on the object. | |
| virtual void | xmog_monitor_exit (xmog_localenv *env=NULL) const |
| Leaves a lock in the object. | |
|
|
The from This constructor is synonymous to the default constructor and creates an instance that does not refer to any Java instance. |
|
||||||||||||
|
The array element constructor. This is really just a convenience constructor that helps improve the performance of accessing array elements. The same could be achieved by using the version of the constructor that takes an xmog_java_ref and xmog_java_dynamic as input.
|
|
||||||||||||||||
|
The constructor that allows the dynamic resolution of class-related information. This is the constructor that's used when we're creating support for static methods and fields.
|
|
||||||||||||
|
The constructor that allows the creation of an instance to handle all requests by delegating to another instance. This is the constructor that's used when we want to maintain a dynamically allocated instance inside another instance. This will for example allow us to have a more derived concrete instance maintained in a stack-based less concrete instance that is returned by a method call.
|
|
||||||||||||||||
|
The constructor that allows the dynamic resolution of instance-related information. This is the constructor that's used when we're creating support for instance methods and fields.
|
|
||||||||||||
|
The constructor that sets an existing JNI reference into a wrapper instance.
|
|
|
Returns this instance's object reference. This method is only useful for reference-type proxies but not for primitive value proxies. Overrides the xmog_base::get_jobject_() method to potentially use a cached value.
Reimplemented from xmog_base. |
|
|
Compares the instance for inequality with another instance.
This method returns |
|
|
Compares the instance for equality with another instance.
This method returns |
|
||||||||||||
|
Returns This method is mainly used to support other languages than C++.
|
|
|
Returns the Java instance's hashCode. This method is mainly used to support other languages than C++.
|
|
|
Returns the Java instance's toString() valus as a global reference. This method is mainly used to support other languages than C++.
|
1.4.1