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


Public Member Functions | |
| void | call_remote (xmog_remote_java_value &result, int mid, xmog_base *base, xmog_java_values *args, xmog_localenv *env) |
| Calls a remote method in the shared JVM. | |
| xmog_java_class * | clazz () |
| Returns the method's declaring type. | |
| jobjectArray | get_argument_array (xmog_java_values *values, xmog_localenv *env=NULL) |
| Returns an object array containing Value objects corresponding to the passed in values. | |
| virtual bool | get_bool (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
| Returns the value returned by a boolean method. | |
| virtual jbyte | get_byte (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a byte method. | |
| virtual jchar | get_char (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a char method. | |
| virtual jdouble | get_double (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a double method. | |
| virtual jfloat | get_float (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a float method. | |
| virtual jint | get_int (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a int method. | |
| virtual jboolean | get_jboolean (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
| Returns the value returned by a boolean method. | |
| 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 returned by a reference type method. | |
| virtual jlong | get_long (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a long method. | |
| jmethodID | get_methodID () |
| Returns the field's ID. | |
| virtual jshort | get_short (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
Returns the value returned by a short method. | |
| virtual void | get_void (xmog_base *obj, xmog_java_values *args=NULL, xmog_localenv *env=NULL, xmog_flags flags=0) |
| Dynamically resolves a reference that evaluates to a void value. | |
| int | initializeMethodID (xmog_localenv *env) |
| Calculates the methodID based on the information maintained by this instance. | |
| bool | is_static () const |
Returns true if the method is static. | |
| const char * | name () |
| Returns the known method name. | |
| xmog_java_method * | next () |
| Returns the next method declared by the same type. | |
| void | operator delete (void *) |
Overloaded operator delete that is safe to use for non heap-allocated instances. | |
| void * | operator new (size_t) |
Overloaded operator new that allows us to detect whether the instance is heap-allocated or not. | |
| virtual void | set_bool (xmog_base *obj, bool b, xmog_localenv *env=NULL) |
| Sets a bool value of a dynamic instance. | |
| virtual void | set_byte (xmog_base *obj, jbyte b, xmog_localenv *env=NULL) |
Sets a jbyte value of a dynamic instance. | |
| virtual void | set_char (xmog_base *obj, jchar ch, xmog_localenv *env=NULL) |
Sets a jchar value of a dynamic instance. | |
| virtual void | set_double (xmog_base *obj, jdouble d, xmog_localenv *env=NULL) |
Sets a double value of a dynamic instance. | |
| virtual void | set_float (xmog_base *obj, jfloat f, xmog_localenv *env=NULL) |
Sets a float value of a dynamic instance. | |
| virtual void | set_int (xmog_base *obj, jint i, xmog_localenv *env=NULL) |
Sets an int value of a dynamic instance. | |
| virtual void | set_jboolean (xmog_base *obj, jboolean b, xmog_localenv *env=NULL) |
Sets a jboolean value of a dynamic instance. | |
| virtual void | set_jobject (xmog_base *obj, jobject o, xmog_localenv *env=NULL) |
| Sets an object reference into a dynamic instance. | |
| virtual void | set_long (xmog_base *obj, jlong l, xmog_localenv *env=NULL) |
Sets a long value of a dynamic instance. | |
| void | set_methodID (jmethodID mid) |
| Sets the method's ID. | |
| virtual void | set_short (xmog_base *obj, jshort sh, xmog_localenv *env=NULL) |
Sets a short value of a dynamic instance. | |
| const char * | type () |
| Returns the known return type signature. | |
| xmog_java_method (const xmog_java_method &rhs) | |
| The copy constructor, required for the infrastructure of STL support. | |
| xmog_java_method (xmog_java_class *clazz, const char *name, const char *type, bool bStatic=false, bool bIndirect=false) | |
| The constructor from name and type. | |
| xmog_java_method (xmog_java_class *clazz, jmethodID mid, bool bStatic=false, bool bIndirect=false) | |
| The constructor from existing method ID. | |
Friends | |
| class | xmog_java_class |
This type is a specialization of the xmog_java_dynamic interface that knows how to call Java methods. This type is a support type that is used by the actual proxy methods. Each declared method is represented by exactly one instance of an xmog_java_method. That instance is then used by a concrete method to call the underlying Java method. The following snippet illustrates the infrastructure:
xmog_java_class clsContext( "javax/naming/Context", true ); xmog_java_method mLookup( &clsContext, "lookup", "(Ljava/lang/String;)Ljava/lang/Object;", false );
and the following snippet illustrates how the generated code uses the infrastructure:
java::lang::Object javax::naming::Context::lookup( const java::lang::String & name ) { return java::lang::Object( mLookup.get_jobject( ... ), ... ); }
|
||||||||||||||||||||
|
The constructor from existing method ID.
|
|
||||||||||||||||||||||||
|
The constructor from name and type.
|
|
|
The copy constructor, required for the infrastructure of STL support.
|
|
||||||||||||||||||||||||
|
Calls a remote method in the shared JVM.
|
|
||||||||||||
|
Returns an object array containing Value objects corresponding to the passed in values.
|
|
||||||||||||||||||||
|
Returns the value returned by a boolean method.
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a boolean method.
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a reference type method.
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Returns the value returned by a
Implements xmog_java_dynamic. |
|
||||||||||||||||||||
|
Dynamically resolves a reference that evaluates to a void value. This function is mostly useful for method invocations.
Implements xmog_java_dynamic. |
|
|
Calculates the methodID based on the information maintained by this instance.
|
|
|
Returns the known method name.
This method may return |
|
||||||||||||||||
|
Sets a bool value of a dynamic instance.
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets an
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets an object reference into a dynamic instance.
Implements xmog_java_dynamic. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
|
Sets the method's ID. This method is used when we perform bulk initialization of elements declared by a type in the remoting protocol. |
|
||||||||||||||||
|
Sets a
Implements xmog_java_dynamic. |
|
|
Returns the known return type signature.
This method may return |
1.4.1