Trait hier::HierExt

source ·
pub trait HierExt<'local> {
    // Required methods
    fn get_java_version(&mut self) -> Result<JavaVersion>;
    fn class_name<'other_local, T>(&mut self, class: T) -> Result<String>
       where T: Desc<'local, JClass<'other_local>>;
}
Expand description

The additional definition for JNIEnv, used for define JClass caching (see [HierExt::lookup_class] and [HierExt::free_lookup]) and other useful class-related functions.

Required Methods§

source

fn get_java_version(&mut self) -> Result<JavaVersion>

Gets the java version currently the jni environment is running on.

source

fn class_name<'other_local, T>(&mut self, class: T) -> Result<String>
where T: Desc<'local, JClass<'other_local>>,

Returns the given class’ class path.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'local> HierExt<'local> for JNIEnv<'local>

source§

fn get_java_version(&mut self) -> Result<JavaVersion>

source§

fn class_name<'other_local, T>(&mut self, class: T) -> Result<String>
where T: Desc<'local, JClass<'other_local>>,

Implementors§