Back to index

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

List of all members.

Public Member Functions

 GetFieldMessage (jni_type type, jobject obj, jfieldID fieldID, jvalue *args, jvalue *result)
virtual void execute (JNIEnv *env)
 GetFieldMessage (jni_type type, jobject obj, jfieldID fieldID, jvalue *result)
virtual void execute (JNIEnv *env)
void setNext (JavaMessage *next)
void setNext (JavaMessage *next)
JavaMessagegetNext ()
JavaMessagegetNext ()

Private Attributes

jni_type type
jobject obj
jfieldID fieldID
jvalueargs
jvalueresult

Detailed Description

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

Definition at line 672 of file CSecureEnv.cpp.


Constructor & Destructor Documentation

GetFieldMessage::GetFieldMessage ( jni_type  type,
jobject  obj,
jfieldID  fieldID,
jvalue args,
jvalue result 
) [inline]

Definition at line 680 of file CSecureEnv.cpp.

       {
              this->type = type;
              this->obj = obj;
              this->fieldID = fieldID;
              this->args = args;
              this->result = result;
       }
GetFieldMessage::GetFieldMessage ( jni_type  type,
jobject  obj,
jfieldID  fieldID,
jvalue result 
) [inline]

Definition at line 835 of file CSecureEnv.cpp.

       {
              this->type = type;
              this->obj = obj;
              this->fieldID = fieldID;
              this->result = result;
       }

Member Function Documentation

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

Implements JavaMessage.

Definition at line 689 of file CSecureEnv.cpp.

       {
              switch (type) {
              case jobject_type:
                     result->l = env->GetObjectField(obj, fieldID);
                     break;
              case jboolean_type:
                     result->z = env->GetBooleanField(obj, fieldID);
                     break;
              case jbyte_type:
                     result->b = env->GetByteField(obj, fieldID);
                     break;
              case jchar_type:
                     result->c = env->GetCharField(obj, fieldID);
                     break;
              case jshort_type:
                     result->s = env->GetShortField(obj, fieldID);
                     break;
              case jint_type:
                     result->i = env->GetIntField(obj, fieldID);
                     break;
              case jlong_type:
                     result->j = env->GetLongField(obj, fieldID);
                     break;
              case jfloat_type:
                     result->f = env->GetFloatField(obj, fieldID);
                     break;
              case jdouble_type:
                     result->d = env->GetDoubleField(obj, fieldID);
                     break;
              }
       }
virtual void GetFieldMessage::execute ( JNIEnv env) [inline, virtual]

Implements JavaMessage.

Definition at line 843 of file CSecureEnv.cpp.

       {
              switch (type) {
              case jobject_type:
                     result->l = env->GetObjectField(obj, fieldID);
#if LOCAL_REFS_ARE_GLOBAL
            result->l = ToGlobalRef(env, result->l);
#endif
                     break;
              case jboolean_type:
                     result->z = env->GetBooleanField(obj, fieldID);
                     break;
              case jbyte_type:
                     result->b = env->GetByteField(obj, fieldID);
                     break;
              case jchar_type:
                     result->c = env->GetCharField(obj, fieldID);
                     break;
              case jshort_type:
                     result->s = env->GetShortField(obj, fieldID);
                     break;
              case jint_type:
                     result->i = env->GetIntField(obj, fieldID);
                     break;
              case jlong_type:
                     result->j = env->GetLongField(obj, fieldID);
                     break;
              case jfloat_type:
                     result->f = env->GetFloatField(obj, fieldID);
                     break;
              case jdouble_type:
                     result->d = env->GetDoubleField(obj, fieldID);
                     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 676 of file CSecureEnv.cpp.

Definition at line 675 of file CSecureEnv.cpp.

Definition at line 674 of file CSecureEnv.cpp.

Definition at line 677 of file CSecureEnv.cpp.

Definition at line 673 of file CSecureEnv.cpp.


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