Struct rucaja::Jvm [] [src]

pub struct Jvm { /* fields omitted */ }

Holds a reference to the embedded JVM.

Methods

impl Jvm
[src]

Tries to instantiate the embedded JVM.

The JNI does not allow the creation of multiple JVMs in the same process (it seems, not even sequentially). An attempt will result in a panic.

Arguments

  • jvm_option_strings - a list of JVM option strings.

Example

use rucaja::Jvm;
unsafe {
  Jvm::new(&["-Xcheck:jni"]);
}

Tries to call the given JVM object constructor in the given JVM class. Currently panics if a JVM exception occurs.

Tries to call the given JVM static boolean method in the given JVM class. Currently panics if a JVM exception occurs.

Tries to call the given JVM static void method in the given JVM class. Currently panics if a JVM exception occurs.

Tries to resolve the JVM class with the given name.

Tries to resolve the JVM constructor with the given signature in the given JVM class.

Tries to resolve the JVM method with the given name and signature in the given JVM class.

Tries to resolve the static JVM method with the given name and signature in the given JVM class.

Creates and returns a JVM string.

Trait Implementations

impl Drop for Jvm
[src]

A method called when the value goes out of scope. Read more