Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsISecureJNI2 Class Reference

#include <nsISecureJNI2.h>

Inheritance diagram for nsISecureJNI2:
Inheritance graph
[legend]
Collaboration diagram for nsISecureJNI2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD NewObject (jclass clazz, jmethodID methodID, jvalue *args, jobject *result, nsISecurityContext *ctx=NULL)=0
 Create new Java object in LiveConnect.
NS_IMETHOD CallMethod (jni_type type, jobject obj, jmethodID methodID, jvalue *args, jvalue *result, nsISecurityContext *ctx=NULL)=0
 Invoke method on Java object in LiveConnect.
NS_IMETHOD CallNonvirtualMethod (jni_type type, jobject obj, jclass clazz, jmethodID methodID, jvalue *args, jvalue *result, nsISecurityContext *ctx=NULL)=0
 Invoke non-virtual method on Java object in LiveConnect.
NS_IMETHOD GetField (jni_type type, jobject obj, jfieldID fieldID, jvalue *result, nsISecurityContext *ctx=NULL)=0
 Get a field on Java object in LiveConnect.
NS_IMETHOD SetField (jni_type type, jobject obj, jfieldID fieldID, jvalue val, nsISecurityContext *ctx=NULL)=0
 Set a field on Java object in LiveConnect.
NS_IMETHOD CallStaticMethod (jni_type type, jclass clazz, jmethodID methodID, jvalue *args, jvalue *result, nsISecurityContext *ctx=NULL)=0
 Invoke static method on Java object in LiveConnect.
NS_IMETHOD GetStaticField (jni_type type, jclass clazz, jfieldID fieldID, jvalue *result, nsISecurityContext *ctx=NULL)=0
 Get a static field on Java object in LiveConnect.
NS_IMETHOD SetStaticField (jni_type type, jclass clazz, jfieldID fieldID, jvalue val, nsISecurityContext *ctx=NULL)=0
 Set a static field on Java object in LiveConnect.
NS_IMETHOD GetVersion (jint *version)=0
NS_IMETHOD DefineClass (const char *name, jobject loader, const jbyte *buf, jsize len, jclass *clazz)=0
NS_IMETHOD FindClass (const char *name, jclass *clazz)=0
NS_IMETHOD GetSuperclass (jclass sub, jclass *super)=0
NS_IMETHOD IsAssignableFrom (jclass sub, jclass super, jboolean *result)=0
NS_IMETHOD Throw (jthrowable obj, jint *result)=0
NS_IMETHOD ThrowNew (jclass clazz, const char *msg, jint *result)=0
NS_IMETHOD ExceptionOccurred (jthrowable *result)=0
NS_IMETHOD ExceptionDescribe (void)=0
NS_IMETHOD ExceptionClear (void)=0
NS_IMETHOD FatalError (const char *msg)=0
NS_IMETHOD NewGlobalRef (jobject lobj, jobject *result)=0
NS_IMETHOD DeleteGlobalRef (jobject gref)=0
NS_IMETHOD DeleteLocalRef (jobject obj)=0
NS_IMETHOD IsSameObject (jobject obj1, jobject obj2, jboolean *result)=0
NS_IMETHOD AllocObject (jclass clazz, jobject *result)=0
NS_IMETHOD GetObjectClass (jobject obj, jclass *result)=0
NS_IMETHOD IsInstanceOf (jobject obj, jclass clazz, jboolean *result)=0
NS_IMETHOD GetMethodID (jclass clazz, const char *name, const char *sig, jmethodID *id)=0
NS_IMETHOD GetFieldID (jclass clazz, const char *name, const char *sig, jfieldID *id)=0
NS_IMETHOD GetStaticMethodID (jclass clazz, const char *name, const char *sig, jmethodID *id)=0
NS_IMETHOD GetStaticFieldID (jclass clazz, const char *name, const char *sig, jfieldID *id)=0
NS_IMETHOD NewString (const jchar *unicode, jsize len, jstring *result)=0
NS_IMETHOD GetStringLength (jstring str, jsize *result)=0
NS_IMETHOD GetStringChars (jstring str, jboolean *isCopy, const jchar **result)=0
NS_IMETHOD ReleaseStringChars (jstring str, const jchar *chars)=0
NS_IMETHOD NewStringUTF (const char *utf, jstring *result)=0
NS_IMETHOD GetStringUTFLength (jstring str, jsize *result)=0
NS_IMETHOD GetStringUTFChars (jstring str, jboolean *isCopy, const char **result)=0
NS_IMETHOD ReleaseStringUTFChars (jstring str, const char *chars)=0
NS_IMETHOD GetArrayLength (jarray array, jsize *result)=0
NS_IMETHOD NewObjectArray (jsize len, jclass clazz, jobject init, jobjectArray *result)=0
NS_IMETHOD GetObjectArrayElement (jobjectArray array, jsize index, jobject *result)=0
NS_IMETHOD SetObjectArrayElement (jobjectArray array, jsize index, jobject val)=0
NS_IMETHOD NewArray (jni_type element_type, jsize len, jarray *result)=0
NS_IMETHOD GetArrayElements (jni_type type, jarray array, jboolean *isCopy, void *result)=0
NS_IMETHOD ReleaseArrayElements (jni_type type, jarray array, void *elems, jint mode)=0
NS_IMETHOD GetArrayRegion (jni_type type, jarray array, jsize start, jsize len, void *buf)=0
NS_IMETHOD SetArrayRegion (jni_type type, jarray array, jsize start, jsize len, void *buf)=0
NS_IMETHOD RegisterNatives (jclass clazz, const JNINativeMethod *methods, jint nMethods, jint *result)=0
NS_IMETHOD UnregisterNatives (jclass clazz, jint *result)=0
NS_IMETHOD MonitorEnter (jobject obj, jint *result)=0
NS_IMETHOD MonitorExit (jobject obj, jint *result)=0
NS_IMETHOD GetJavaVM (JavaVM **vm, jint *result)=0

Detailed Description

Definition at line 60 of file nsISecureJNI2.h.


Member Function Documentation

NS_IMETHOD nsISecureJNI2::AllocObject ( jclass  clazz,
jobject result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::CallMethod ( jni_type  type,
jobject  obj,
jmethodID  methodID,
jvalue args,
jvalue result,
nsISecurityContext ctx = NULL 
) [pure virtual]

Invoke method on Java object in LiveConnect.

Parameters:
type-- Return type
obj-- Java object.
methodID-- method id
args-- arguments for invoking the constructor.
result-- return result of invocation.
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::CallNonvirtualMethod ( jni_type  type,
jobject  obj,
jclass  clazz,
jmethodID  methodID,
jvalue args,
jvalue result,
nsISecurityContext ctx = NULL 
) [pure virtual]

Invoke non-virtual method on Java object in LiveConnect.

Parameters:
type-- Return type
obj-- Java object.
clazz-- Class object
methodID-- method id
args-- arguments for invoking the constructor.
ctx-- security context
result-- return result of invocation.

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::CallStaticMethod ( jni_type  type,
jclass  clazz,
jmethodID  methodID,
jvalue args,
jvalue result,
nsISecurityContext ctx = NULL 
) [pure virtual]

Invoke static method on Java object in LiveConnect.

Parameters:
type-- Return type
clazz-- Class object.
methodID-- method id
args-- arguments for invoking the constructor.
result-- return result of invocation.
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::DefineClass ( const char *  name,
jobject  loader,
const jbyte buf,
jsize  len,
jclass clazz 
) [pure virtual]

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::FatalError ( const char *  msg) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::FindClass ( const char *  name,
jclass clazz 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetArrayElements ( jni_type  type,
jarray  array,
jboolean isCopy,
void result 
) [pure virtual]
NS_IMETHOD nsISecureJNI2::GetArrayLength ( jarray  array,
jsize result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetArrayRegion ( jni_type  type,
jarray  array,
jsize  start,
jsize  len,
void buf 
) [pure virtual]
NS_IMETHOD nsISecureJNI2::GetField ( jni_type  type,
jobject  obj,
jfieldID  fieldID,
jvalue result,
nsISecurityContext ctx = NULL 
) [pure virtual]

Get a field on Java object in LiveConnect.

Parameters:
type-- Return type
obj-- Java object.
fieldID-- field id
result-- return field value
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetFieldID ( jclass  clazz,
const char *  name,
const char *  sig,
jfieldID id 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetJavaVM ( JavaVM **  vm,
jint result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetMethodID ( jclass  clazz,
const char *  name,
const char *  sig,
jmethodID id 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetObjectArrayElement ( jobjectArray  array,
jsize  index,
jobject result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetObjectClass ( jobject  obj,
jclass result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStaticField ( jni_type  type,
jclass  clazz,
jfieldID  fieldID,
jvalue result,
nsISecurityContext ctx = NULL 
) [pure virtual]

Get a static field on Java object in LiveConnect.

Parameters:
type-- Return type
clazz-- Class object.
fieldID-- field id
result-- return field value
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStaticFieldID ( jclass  clazz,
const char *  name,
const char *  sig,
jfieldID id 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStaticMethodID ( jclass  clazz,
const char *  name,
const char *  sig,
jmethodID id 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStringChars ( jstring  str,
jboolean isCopy,
const jchar **  result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStringLength ( jstring  str,
jsize result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStringUTFChars ( jstring  str,
jboolean isCopy,
const char **  result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetStringUTFLength ( jstring  str,
jsize result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetSuperclass ( jclass  sub,
jclass super 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::GetVersion ( jint version) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::IsAssignableFrom ( jclass  sub,
jclass  super,
jboolean result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::IsInstanceOf ( jobject  obj,
jclass  clazz,
jboolean result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::IsSameObject ( jobject  obj1,
jobject  obj2,
jboolean result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::MonitorEnter ( jobject  obj,
jint result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::MonitorExit ( jobject  obj,
jint result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::NewArray ( jni_type  element_type,
jsize  len,
jarray result 
) [pure virtual]
NS_IMETHOD nsISecureJNI2::NewGlobalRef ( jobject  lobj,
jobject result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::NewObject ( jclass  clazz,
jmethodID  methodID,
jvalue args,
jobject result,
nsISecurityContext ctx = NULL 
) [pure virtual]

Create new Java object in LiveConnect.

Parameters:
clazz-- Java Class object.
methodID-- Method id
args-- arguments for invoking the constructor.
result-- return new Java object.
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::NewObjectArray ( jsize  len,
jclass  clazz,
jobject  init,
jobjectArray result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::NewString ( const jchar unicode,
jsize  len,
jstring result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::NewStringUTF ( const char *  utf,
jstring result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::RegisterNatives ( jclass  clazz,
const JNINativeMethod methods,
jint  nMethods,
jint result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::ReleaseArrayElements ( jni_type  type,
jarray  array,
void elems,
jint  mode 
) [pure virtual]
NS_IMETHOD nsISecureJNI2::ReleaseStringChars ( jstring  str,
const jchar chars 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::ReleaseStringUTFChars ( jstring  str,
const char *  chars 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::SetArrayRegion ( jni_type  type,
jarray  array,
jsize  start,
jsize  len,
void buf 
) [pure virtual]
NS_IMETHOD nsISecureJNI2::SetField ( jni_type  type,
jobject  obj,
jfieldID  fieldID,
jvalue  val,
nsISecurityContext ctx = NULL 
) [pure virtual]

Set a field on Java object in LiveConnect.

Parameters:
type-- Return type
obj-- Java object.
fieldID-- field id
val-- field value to set
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::SetObjectArrayElement ( jobjectArray  array,
jsize  index,
jobject  val 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::SetStaticField ( jni_type  type,
jclass  clazz,
jfieldID  fieldID,
jvalue  val,
nsISecurityContext ctx = NULL 
) [pure virtual]

Set a static field on Java object in LiveConnect.

Parameters:
type-- Return type
clazz-- Class object.
fieldID-- field id
val-- field value to set
ctx-- security context

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::Throw ( jthrowable  obj,
jint result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::ThrowNew ( jclass  clazz,
const char *  msg,
jint result 
) [pure virtual]

Here is the caller graph for this function:

NS_IMETHOD nsISecureJNI2::UnregisterNatives ( jclass  clazz,
jint result 
) [pure virtual]

Here is the caller graph for this function:


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