Expand description
Wrappers for object pointers returned from the JVM.
Structs
- Auto-release wrapper for a mutable pointer to the elements of a
JPrimitiveArray
(such asJByteArray
) - Auto-release wrapper for a mutable pointer to the elements of a
JPrimitiveArray
(such asJByteArray
) - Auto-delete wrapper for local refs.
- A global JVM reference. These are “pinned” by the garbage collector and are guaranteed to not get collected until released. Thus, this is allowed to outlive the
JNIEnv
that it came from and can be used in other threads. - Lifetime’d representation of a
jobject
that is an instance of the ByteBuffer Java class. Just aJObject
wrapped in a new class. - Lifetime’d representation of a
jclass
. Just aJObject
wrapped in a new class. - Wrapper around
jfieldID
that implementsSend
+Sync
since method IDs are valid across threads (not tied to aJNIEnv
). - Wrapper for JObjects that implement
java/util/List
. Provides methods to get, add, and remove elements. - An iterator over the keys and values in a
java.util.List
. SeeJList::iter
for more information. - Wrapper for JObjects that implement
java/util/Map
. Provides methods to get and set entries and a way to iterate over key/value pairs. - An iterator over the keys and values in a map. See
JMap::iter
for more information. - Wrapper around
jmethodID
that implementsSend
+Sync
since method IDs are valid across threads (not tied to aJNIEnv
). - Wrapper around [
sys::jobject
] that adds a lifetime to ensure that the underlying JNI pointer won’t be accessible to safe Rust code if the object reference is released. - Lifetime’d representation of a
jobjectArray
which wraps aJObject
reference - Wrapper around
jfieldID
that implementsSend
+Sync
since field IDs are valid across threads (not tied to aJNIEnv
). - Wrapper around
jmethodID
that implementsSend
+Sync
since method IDs are valid across threads (not tied to aJNIEnv
). - Lifetime’d representation of a
jstring
. Just aJObject
wrapped in a new class. - Lifetime’d representation of a
jthrowable
. Just aJObject
wrapped in a new class. - A weak global JVM reference. These are global in scope like
GlobalRef
, and may outlive theJNIEnv
they came from, but are not guaranteed to not get collected until released.
Enums
- Rusty version of the JNI C
jvalue
enum. Used in Java method call arguments and returns. - ReleaseMode
Traits
- Trait to access the raw
jarray
pointer for types that wrap an array reference - A sealed trait to define type array access/release for primitive JNI types
Type Definitions
- Lifetime’d representation of a
crate::sys::jbooleanArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jbyteArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jcharArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jdoubleArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jfloatArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jintArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jlongArray
which wraps aJObject
reference - Lifetime’d representation of a
crate::sys::jshortArray
which wraps aJObject
reference - A reference
JValueGen
. - An owned
JValueGen
.