![]() |
Qore jni Module
1.0.1
|
Functions | |
| Jni::org::qore::jni::Class | Jni::org::qore::jni::define_class (string name, binary bytecode) |
| Creates a class object from bytecode data. More... | |
| string | Jni::org::qore::jni::get_version () |
| Returns the version of the JNI API. More... | |
| Jni::java::lang::Object | Jni::org::qore::jni::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. More... | |
| Jni::java::lang::Object | Jni::org::qore::jni::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. More... | |
| Jni::java::lang::Object | Jni::org::qore::jni::invoke (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. More... | |
| Jni::java::lang::Object | Jni::org::qore::jni::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. More... | |
| Jni::java::lang::Class | Jni::org::qore::jni::load_class (string name) |
| Loads a Java class with given name. More... | |
| Jni::org::qore::jni::JavaArray | Jni::org::qore::jni::new_array (Jni::java::lang::Class cls, int size) |
| Allocates a new Java array. More... | |
| Jni::org::qore::jni::Class Jni::org::qore::jni::define_class | ( | string | name, |
| binary | bytecode | ||
| ) |
Creates a class object from bytecode data.
| name | the name of the class (ex: "org/qore/my_package/ClassName") |
| bytecode | the byte code of the class |
| string Jni::org::qore::jni::get_version | ( | ) |
Returns the version of the JNI API.
| Jni::java::lang::Object Jni::org::qore::jni::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.
| invocationHandler | the invocation handler |
| cls | the interface to implement |
| Jni::java::lang::Object Jni::org::qore::jni::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.
| classLoader | the class loader that loaded the interface |
| invocationHandler | the invocation handler |
| cls | the interface to implement |
| Jni::java::lang::Object Jni::org::qore::jni::invoke | ( | 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.
| method | the method to invoke |
| object | the object to use to invoke the method; for static methods, this argument can be nothing |
java.lang.reflect.InvocationTargetException objects)| Jni::java::lang::Object Jni::org::qore::jni::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.
| method | the method to invoke |
| object | the object to use to invoke the method; for static methods, this argument can be nothing |
java.lang.reflect.InvocationTargetException objects)| Jni::java::lang::Class Jni::org::qore::jni::load_class | ( | string | name | ) |
Loads a Java class with given name.
| name | the name of the class to load in internal ("java/lang/String") format |
| JNI-ERROR | if the class cannot be loaded |
| Jni::org::qore::jni::JavaArray Jni::org::qore::jni::new_array | ( | Jni::java::lang::Class | cls, |
| int | size | ||
| ) |
Allocates a new Java array.
| cls | the Class of the component type of the Array |
| size | the size of the array to allocate |