![]() |
Qore jni Module 2.4.0
|
jni namespace More...
Classes | |
| class | JavaArray |
| Instances of this class represent Java arrays. More... | |
| class | QoreInvocationHandler |
| Represents an invocation handler used to implement callback from Java to Qore. More... | |
Functions | |
| Jni::org::qore::jni::Class | define_class (string name, binary bytecode) |
| Creates a class object from bytecode data. | |
| binary | get_byte_code (string class_name) |
| Returns dynamically generated Java byte code for the given Qore class. | |
| Jni::java::lang::Object | get_class_loader () |
| Returns the class loader associated with the current program. | |
| string | get_version () |
| Returns the version of the JNI API. | |
| Jni::java::lang::Object | implement_interface (Jni::org::qore::jni::QoreInvocationHandler invocationHandler, Jni::java::lang::Class cls) |
| Creates a Java object that implements given interface using an invocation handler. | |
| Jni::java::lang::Object | implement_interface (Jni::java::lang::ClassLoader classLoader, Jni::org::qore::jni::QoreInvocationHandler invocationHandler, Jni::java::lang::Class cls) |
| Creates a Java object that implements given interface using an invocation handler using an explicit class loader. | |
| Jni::java::lang::Object | invoke (Jni::java::lang::reflect::Method method, *Jni::java::lang::Object object,...) |
| Invokes a method with the given arguments in a virtual way; meaning that the method in the most derived class is executed; not necessarily the method passed as an argument. | |
| Jni::java::lang::Object | invoke_nonvirtual (Jni::java::lang::reflect::Method method, *Jni::java::lang::Object object,...) |
| Invokes a method with the given arguments in a non-virtual way; meaning that even if the object provided is a child class, the method given in the first argument is executed. | |
| Jni::java::lang::Class | load_class (string name) |
| Loads a Java class with given name. | |
| Jni::org::qore::jni::JavaArray | new_array (Jni::java::lang::Class cls, int size) |
| Allocates a new Java array. | |
| set_save_object_callback (*code save_object_callback) | |
| Sets the "save object" callback for Qore objects created from Java code. | |
jni namespace