LocalObject

Type Alias LocalObject 

Source
pub type LocalObject<'env, T> = Object<LocalRef<'env>, T>;
Expand description

A local reference to an object with a specific type.

Aliased Type§

pub struct LocalObject<'env, T> { /* private fields */ }

Trait Implementations§

Source§

impl<'env, T: ObjectType> Got<'env> for LocalObject<'env, T>

Source§

unsafe fn get_of<const STATIC: bool, R: StrongRef>( env: &'env JNIEnv<'_>, obj: &R, field: FieldID<STATIC>, ) -> Result<Self, LocalObject<'env, JavaThrowable>>

Get the value of a field. Read more
Source§

impl<'env, Type: ObjectType> Target<'env> for LocalObject<'env, Type>

Source§

unsafe fn call<const STATIC: bool, const N_ARGS: usize, T: StrongRef>( env: &'env JNIEnv<'_>, this: &T, method: MethodID<STATIC>, args: [Arg<'_>; N_ARGS], ) -> Result<Self, LocalObject<'env, JavaThrowable>>

Call a method with a fixed number of arguments. Read more
Source§

unsafe fn call_variadic<'a, const STATIC: bool, T: StrongRef, Args: IntoIterator<Item = Arg<'a>>>( env: &'env JNIEnv<'_>, this: &T, method: MethodID<STATIC>, args: Args, ) -> Result<Self, LocalObject<'env, JavaThrowable>>

Call a method with a variable number of arguments. Read more