Struct rucaja::Jvm [] [src]

pub struct Jvm { /* fields omitted */ }

Holds a reference to the embedded JVM.

Methods

impl Jvm
[src]

[src]

[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"]);
}

[src]

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

[src]

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

[src]

[src]

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

[src]

Tries to resolve the JVM class with the given name.

[src]

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

[src]

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

[src]

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

[src]

Creates and returns a JVM string.

Trait Implementations

impl Drop for Jvm
[src]

[src]

Executes the destructor for this type. Read more