Expand description
java language features and class shims
Modules
- java/io/*
- java/lang/*
- java/math/*
- java/net/*
- java/nio/*
- java/time/*
- java/util/*
Macros
- Derive
crate::java::Object
for a tuple struct with 1crate::java::lang::Object
field.
Structs
- A static high-level wrapper around Java class constructors
- A high-level lens into a Java object field
- Static high-level wrapper of Java class instance methods
- Helper type that has
T
’sjava::Class::PATH
but does not invokejava::Object::upcast
on it, preserving thejava::lang::Object
. - Helper type that wraps a type
T
without invokingjava::Object::upcast
on it, preventing potential NullPointerExceptions. - Provides strongly-typed JVM type signature strings at compile-time
- A high-level lens into a static Java object field
- Static high-level wrapper of static Java class methods
Traits
- An object with a known class definition
- A rust type that can be converted to & from a
java::lang::Object
- Primitive java values that can be cheaply converted to / from
JValue
and can be wrapped by an Object class. - [
toad_jni::errors::Result
] interop helpers - Handle a
Result<impl java::Object, Throwable>
in a native method implementation. - A type that has a corresponding Java type
Functions
- Create a new local frame from the global jvm handle
Type Definitions
- Alias for
jni::JNIEnv