Jobject

Some articles on jobject:

Java Native Interface - How The JNI Works
... When the JVM invokes the function, it passes a JNIEnv pointer, a jobject pointer, and any Java arguments declared by the Java method ... Java_ClassName_MethodName (JNIEnv *env, jobject obj) { /*Implement Native Method Here*/ } The env pointer is a structure that contains the interface to the JVM ... string //C++ code extern "C" JNIEXPORT void JNICALL Java_ClassName_MethodName (JNIEnv *env, jobject obj, jstring javaString) { //Get the native string from javaString const char *nativeString = env->GetStringUTFCha ...
Quark Framework - CAL On Java - 3. Casts For Java Types
... For instance, JObject and JList are imported in the Prelude ... foreign unsafe import jvm "cast" castObjectToList JObject -> JList foreign unsafe import jvm "cast" castListToObject JList -> JObject Of course, with casting, there's always the ...