Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
CallMethodMessage Class Reference
Inheritance diagram for CallMethodMessage:
Inheritance graph
[legend]
Collaboration diagram for CallMethodMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CallMethodMessage (jni_type type, jobject obj, jmethodID methodID, jvalue *args, jvalue *result)
virtual void execute (JNIEnv *env)
 CallMethodMessage (jni_type return_type, jobject obj, jmethodID methodID, jvalue *args, jvalue *result)
virtual void execute (JNIEnv *env)
void setNext (JavaMessage *next)
void setNext (JavaMessage *next)
JavaMessagegetNext ()
JavaMessagegetNext ()

Private Attributes

jni_type type
jobject obj
jmethodID methodID
jvalueargs
jvalueresult
jni_type return_type

Detailed Description

=--------------------------------------------------------------------------=

Definition at line 500 of file CSecureEnv.cpp.


Constructor & Destructor Documentation

CallMethodMessage::CallMethodMessage ( jni_type  type,
jobject  obj,
jmethodID  methodID,
jvalue args,
jvalue result 
) [inline]

Definition at line 508 of file CSecureEnv.cpp.

       {
              this->type = type;
              this->obj = obj;
              this->methodID = methodID;
              this->args = args;
              this->result = result;
       }
CallMethodMessage::CallMethodMessage ( jni_type  return_type,
jobject  obj,
jmethodID  methodID,
jvalue args,
jvalue result 
) [inline]

Definition at line 619 of file CSecureEnv.cpp.

       {
              this->return_type = return_type;
              this->obj = obj;
              this->methodID = methodID;
              this->args = args;
              this->result = result;
       }

Member Function Documentation

virtual void CallMethodMessage::execute ( JNIEnv env) [inline, virtual]

Implements JavaMessage.

Definition at line 517 of file CSecureEnv.cpp.

       {
              switch (type) {
              case jobject_type:
                     result->l = env->CallObjectMethodA(obj, methodID, args);
                     break;
              case jboolean_type:
                     result->z = env->CallBooleanMethodA(obj, methodID, args);
                     break;
              case jbyte_type:
                     result->b = env->CallByteMethodA(obj, methodID, args);
                     break;
              case jchar_type:
                     result->c = env->CallCharMethodA(obj, methodID, args);
                     break;
              case jshort_type:
                     result->s = env->CallShortMethodA(obj, methodID, args);
                     break;
              case jint_type:
                     result->i = env->CallIntMethodA(obj, methodID, args);
                     break;
              case jlong_type:
                     result->j = env->CallLongMethodA(obj, methodID, args);
                     break;
              case jfloat_type:
                     result->f = env->CallFloatMethodA(obj, methodID, args);
                     break;
              case jdouble_type:
                     result->d = env->CallDoubleMethodA(obj, methodID, args);
                     break;
              case jvoid_type:
                     env->CallVoidMethodA(obj, methodID, args);
                     break;
              }
       }
virtual void CallMethodMessage::execute ( JNIEnv env) [inline, virtual]

Implements JavaMessage.

Definition at line 628 of file CSecureEnv.cpp.

       {
              switch (return_type) {
              case jobject_type:
                     result->l = env->CallObjectMethodA(obj, methodID, args);
#if LOCAL_REFS_ARE_GLOBAL
            result->l = ToGlobalRef(env, result->l);
#endif
                     break;
              case jboolean_type:
                     result->z = env->CallBooleanMethodA(obj, methodID, args);
                     break;
              case jbyte_type:
                     result->b = env->CallByteMethodA(obj, methodID, args);
                     break;
              case jchar_type:
                     result->c = env->CallCharMethodA(obj, methodID, args);
                     break;
              case jshort_type:
                     result->s = env->CallShortMethodA(obj, methodID, args);
                     break;
              case jint_type:
                     result->i = env->CallIntMethodA(obj, methodID, args);
                     break;
              case jlong_type:
                     result->j = env->CallLongMethodA(obj, methodID, args);
                     break;
              case jfloat_type:
                     result->f = env->CallFloatMethodA(obj, methodID, args);
                     break;
              case jdouble_type:
                     result->d = env->CallDoubleMethodA(obj, methodID, args);
                     break;
              case jvoid_type:
                     env->CallVoidMethodA(obj, methodID, args);
                     break;
              }
       }

Here is the call graph for this function:

JavaMessage* JavaMessage::getNext ( ) [inline, inherited]

Definition at line 55 of file JavaMessageQueue.h.

{ return mNext; }

Here is the caller graph for this function:

JavaMessage* JavaMessage::getNext ( ) [inline, inherited]

Definition at line 56 of file JavaMessageQueue.h.

{ return mNext; }
void JavaMessage::setNext ( JavaMessage next) [inline, inherited]

Definition at line 54 of file JavaMessageQueue.h.

{ mNext = next; }

Here is the caller graph for this function:

void JavaMessage::setNext ( JavaMessage next) [inline, inherited]

Definition at line 55 of file JavaMessageQueue.h.

{ mNext = next; }

Member Data Documentation

Definition at line 504 of file CSecureEnv.cpp.

Definition at line 503 of file CSecureEnv.cpp.

Definition at line 502 of file CSecureEnv.cpp.

Definition at line 505 of file CSecureEnv.cpp.

Definition at line 612 of file CSecureEnv.cpp.

Definition at line 501 of file CSecureEnv.cpp.


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