jni_utils.h File Reference


Functions

VMEXPORT Class_Handle jni_get_class_handle (JNIEnv *, jclass)
 
Author:
Intel, Gregory Shimansky

VMEXPORT jclass jni_class_from_handle (JNIEnv *, Class_Handle)
VMEXPORT jobject jni_class_loader_from_handle (JNIEnv *, ClassLoaderHandle)
VMEXPORT ClassLoaderHandle class_loader_lookup (jobject loader)
VMEXPORT void class_loader_load_native_lib (const char *lib, ClassLoaderHandle loader)
VMEXPORT jvalueget_jvalue_arg_array (Method *method, va_list args)
VMEXPORT void throw_exception_from_jni (JNIEnv *jenv, const char *exc, const char *msg)
VMEXPORT void array_copy_jni (JNIEnv *, jobject src, jint src_off, jobject dst, jint dst_off, jint count)
VMEXPORT FieldLookupField (Class *, const char *)
VMEXPORT MethodLookupMethod (Class *, const char *, const char *)
VMEXPORT char * ParameterTypesToMethodSignature (JNIEnv *, jobjectArray, const char *name)
VMEXPORT char PrimitiveNameToSignature (const char *)
bool ensure_initialised (JNIEnv *jenv, Class *clss)
jobject create_default_instance (Class *clss)
jobject CreateNewThrowable (JNIEnv *jenv, Class *clazz, const char *message, jthrowable cause)
jclassGetMethodParameterTypes (JNIEnv *, const char *, int *)
jclassGetMethodParameterTypes (JNIEnv *, const char *, int *, ClassLoader *)
VMEXPORT jclass SignatureToClass (JNIEnv *, const char *)
VMEXPORT jclass SignatureToClass (JNIEnv *, const char *, ClassLoader *loader)
char * GetClassSignature (Class *)
size_t GetClassSignatureLength (Class *)
void GetClassSignature (Class *, char *)
char * PrimitiveSignatureToName (const char sig)
void PrimitiveSignatureToName (const char sig, char *classname)
const char * SignatureToName (const char *sig)
void SignatureToName (const char *sig, char *name)
jclass FindClassWithClassLoader (JNIEnv *env_ext, const char *name, ClassLoader *loader)
jclass FindClassWithClassLoader (JNIEnv *env_ext, String *name, ClassLoader *loader)
FieldLookupDeclaredField (Class *clss, const char *name)
MethodLookupDeclaredMethod (Class *clss, const char *mname, const char *msig)
jclass FindClass (JNIEnv *env_ext, String *name)
JavaVMjni_get_java_vm (JNIEnv *jni_env)
Global_Envjni_get_vm_env (JNIEnv *jni_env)

Variables

ObjectHandle gh_jlc
ObjectHandle gh_jls
ObjectHandle gh_jlcloneable
ObjectHandle gh_aoboolean
ObjectHandle gh_aobyte
ObjectHandle gh_aochar
ObjectHandle gh_aoshort
ObjectHandle gh_aoint
ObjectHandle gh_aolong
ObjectHandle gh_aofloat
ObjectHandle gh_aodouble
ObjectHandle gh_jlboolean
ObjectHandle gh_jlbyte
ObjectHandle gh_jlchar
ObjectHandle gh_jlshort
ObjectHandle gh_jlint
ObjectHandle gh_jllong
ObjectHandle gh_jlfloat
ObjectHandle gh_jldouble
jfieldID gid_boolean_value
jfieldID gid_byte_value
jfieldID gid_char_value
jfieldID gid_short_value
jfieldID gid_int_value
jfieldID gid_long_value
jfieldID gid_float_value
jfieldID gid_double_value
jfieldID gid_throwable_traceinfo
jfieldID gid_string_field_value
jfieldID gid_string_field_bvalue
jfieldID gid_string_field_offset
jfieldID gid_string_field_count
jmethodID gid_stringinit
jmethodID gid_doubleisNaN
jdouble gc_double_POSITIVE_INFINITY
jdouble gc_double_NEGATIVE_INFINITY


Function Documentation

VMEXPORT Class_Handle jni_get_class_handle ( JNIEnv ,
jclass   
)

Author:
Intel, Gregory Shimansky

Version:
Revision
1.1.2.2.4.3

VMEXPORT jclass jni_class_from_handle ( JNIEnv ,
Class_Handle   
)

VMEXPORT jobject jni_class_loader_from_handle ( JNIEnv ,
ClassLoaderHandle   
)

VMEXPORT ClassLoaderHandle class_loader_lookup ( jobject  loader  ) 

VMEXPORT void class_loader_load_native_lib ( const char *  lib,
ClassLoaderHandle  loader 
)

VMEXPORT jvalue* get_jvalue_arg_array ( Method method,
va_list  args 
)

VMEXPORT void throw_exception_from_jni ( JNIEnv jenv,
const char *  exc,
const char *  msg 
)

VMEXPORT void array_copy_jni ( JNIEnv ,
jobject  src,
jint  src_off,
jobject  dst,
jint  dst_off,
jint  count 
)

VMEXPORT Field* LookupField ( Class ,
const char *   
)

VMEXPORT Method* LookupMethod ( Class ,
const char *  ,
const char *   
)

VMEXPORT char* ParameterTypesToMethodSignature ( JNIEnv ,
jobjectArray  ,
const char *  name 
)

VMEXPORT char PrimitiveNameToSignature ( const char *   ) 

bool ensure_initialised ( JNIEnv jenv,
Class clss 
)

jobject create_default_instance ( Class clss  ) 

jobject CreateNewThrowable ( JNIEnv jenv,
Class clazz,
const char *  message,
jthrowable  cause 
)

jclass* GetMethodParameterTypes ( JNIEnv ,
const char *  ,
int *   
)

jclass* GetMethodParameterTypes ( JNIEnv ,
const char *  ,
int *  ,
ClassLoader  
)

VMEXPORT jclass SignatureToClass ( JNIEnv ,
const char *   
)

VMEXPORT jclass SignatureToClass ( JNIEnv ,
const char *  ,
ClassLoader loader 
)

char* GetClassSignature ( Class  ) 

size_t GetClassSignatureLength ( Class  ) 

void GetClassSignature ( Class ,
char *   
)

char* PrimitiveSignatureToName ( const char  sig  ) 

void PrimitiveSignatureToName ( const char  sig,
char *  classname 
)

const char* SignatureToName ( const char *  sig  ) 

void SignatureToName ( const char *  sig,
char *  name 
)

jclass FindClassWithClassLoader ( JNIEnv env_ext,
const char *  name,
ClassLoader loader 
)

jclass FindClassWithClassLoader ( JNIEnv env_ext,
String name,
ClassLoader loader 
)

Field* LookupDeclaredField ( Class clss,
const char *  name 
)

Method* LookupDeclaredMethod ( Class clss,
const char *  mname,
const char *  msig 
)

jclass FindClass ( JNIEnv env_ext,
String name 
)

JavaVM* jni_get_java_vm ( JNIEnv jni_env  ) 

Global_Env* jni_get_vm_env ( JNIEnv jni_env  ) 


Variable Documentation

ObjectHandle gh_jlc

ObjectHandle gh_jls

ObjectHandle gh_jlcloneable

ObjectHandle gh_aoboolean

ObjectHandle gh_aobyte

ObjectHandle gh_aochar

ObjectHandle gh_aoshort

ObjectHandle gh_aoint

ObjectHandle gh_aolong

ObjectHandle gh_aofloat

ObjectHandle gh_aodouble

ObjectHandle gh_jlboolean

ObjectHandle gh_jlbyte

ObjectHandle gh_jlchar

ObjectHandle gh_jlshort

ObjectHandle gh_jlint

ObjectHandle gh_jllong

ObjectHandle gh_jlfloat

ObjectHandle gh_jldouble

jfieldID gid_boolean_value

jfieldID gid_byte_value

jfieldID gid_char_value

jfieldID gid_short_value

jfieldID gid_int_value

jfieldID gid_long_value

jfieldID gid_float_value

jfieldID gid_double_value

jfieldID gid_throwable_traceinfo

jfieldID gid_string_field_value

jfieldID gid_string_field_bvalue

jfieldID gid_string_field_offset

jfieldID gid_string_field_count

jmethodID gid_stringinit

jmethodID gid_doubleisNaN

jdouble gc_double_POSITIVE_INFINITY

jdouble gc_double_NEGATIVE_INFINITY


Genereated on Tue Mar 11 19:25:57 2008 by Doxygen.

(c) Copyright 2005, 2008 The Apache Software Foundation or its licensors, as applicable.