Struct rucaja::Jvm
[−]
[src]
pub struct Jvm { /* fields omitted */ }
Represents the JVM and the JNI environment.
Methods
impl Jvm
[src]
fn new(jvm_option_strings: &[&str]) -> Jvm
Instantiates the JVM and the JNI environment.
fn call_static_void_method(&self, jvm_class: &JvmClass, jvm_method: &JvmMethod)
Tries to call the given JVM method in the given JVM class. Currently panics if a JVM exception occurs.
fn get_class(&self, jvm_class_name: &str) -> Option<JvmClass>
Tries to resolve the JVM class with the given name.
fn get_constructor(&self,
jvm_class: &JvmClass,
jvm_method_signature: &str)
-> Option<JvmMethod>
jvm_class: &JvmClass,
jvm_method_signature: &str)
-> Option<JvmMethod>
Tries to resolve the JVM constructor with the given signature in the given JVM class.
fn get_method(&self,
jvm_class: &JvmClass,
jvm_method_name: &str,
jvm_method_signature: &str)
-> Option<JvmMethod>
jvm_class: &JvmClass,
jvm_method_name: &str,
jvm_method_signature: &str)
-> Option<JvmMethod>
Tries to resolve the JVM method with the given name and signature in the given JVM class.
fn get_static_method(&self,
jvm_class: &JvmClass,
jvm_method_name: &str,
jvm_method_signature: &str)
-> Option<JvmMethod>
jvm_class: &JvmClass,
jvm_method_name: &str,
jvm_method_signature: &str)
-> Option<JvmMethod>
Tries to resolve the static JVM method with the given name and signature in the given JVM class.
fn jni_environment(&self) -> *mut JNIEnv
Returns the JNI environment.