Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benanders/rjni
/ functions
Functions
64 in github.com/benanders/rjni
⨍
Functions
64
◇
Types & classes
24
↓ 12 callers
Method
offset
Returns the integer offset of the corresponding method call function within the JNIEnv struct.
src/lib.rs:867
↓ 7 callers
Method
class
Load a class by its fully qualified name (including its parent packages). The parent packages of the class should be separated by `/` and not `.`, as
src/lib.rs:376
↓ 7 callers
Method
has_exception
Returns true when an exception has occurred.
src/lib.rs:394
↓ 5 callers
Method
call
Call a method on this object. The function's signature is determined by the types of each argument and the given return type. If the signature doesn'
src/lib.rs:721
↓ 5 callers
Method
to_jvalue
Converts the value into a Java value suitable to pass as an argument to an FFI call.
src/lib.rs:970
↓ 4 callers
Method
add
(int a, int b)
examples/Test.java:32
↓ 4 callers
Method
add_option
Adds an option to the list of FFI options, used when we're constructing the final options list.
src/lib.rs:205
↓ 4 callers
Method
classpath
Set the classpath, which contains a list of filesystem directories that the JVM will search when looking for a class to load.
src/lib.rs:124
↓ 4 callers
Method
static_signature
Returns the function signature component for this value.
src/lib.rs:848
↓ 4 callers
Method
version
Set the JVM version to use.
src/lib.rs:117
↓ 3 callers
Method
call_static
Call a static method on this class. If the function doesn't return a value (ie. a void return type), then Value::Void is returned. Value::Void shoul
src/lib.rs:546
↓ 3 callers
Method
class_name
Returns the fully qualified name of the class this object is an instance of as a string.
src/lib.rs:681
↓ 3 callers
Function
function_signature
Returns the function signature as a string for a method with the given arguments and return type.
src/lib.rs:1053
↓ 2 callers
Method
field_id
Returns the ID for a field with the given name and type.
src/lib.rs:579
↓ 2 callers
Method
instantiate
Create an instance of this class. The provided arguments are for the object's constructor. The correct overloaded constructor is chosen based on the
src/lib.rs:448
↓ 2 callers
Method
l
(&self)
src/ffi.rs:131
↓ 2 callers
Method
signature
(&self)
src/lib.rs:886
↓ 2 callers
Method
static_field_id
Returns the ID for a static field on this class with the given name and type.
src/lib.rs:595
↓ 1 callers
Method
b
(&self)
src/ffi.rs:124
↓ 1 callers
Method
build
Builds the underlying list of options. This function is marked unsafe since we use unsafe pointers with regards to the FFI struct. The caller must en
src/lib.rs:168
↓ 1 callers
Method
c
(&self)
src/ffi.rs:125
↓ 1 callers
Method
clear_exception
Clears the most recently triggered exception.
src/lib.rs:399
↓ 1 callers
Function
convert_string
Convert the given Java string into the proper Rust version, and push it onto the given String.
src/lib.rs:1088
↓ 1 callers
Method
d
(&self)
src/ffi.rs:130
↓ 1 callers
Method
exception_obj
Get the throwable instance of the most recently occurred exception.
src/lib.rs:404
↓ 1 callers
Method
f
(&self)
src/ffi.rs:129
↓ 1 callers
Method
field
Get the value of a public field on this object.
src/lib.rs:755
↓ 1 callers
Method
i
(&self)
src/ffi.rs:127
↓ 1 callers
Method
j
(&self)
src/ffi.rs:128
↓ 1 callers
Function
latest_jvm_version
Determines the most recently supported version of the JVM on this system, and returns the JavaVMInitArgs struct for this version, or None if there is
src/lib.rs:247
↓ 1 callers
Method
message
Returns the detailed error message associated with the exception.
src/lib.rs:1215
↓ 1 callers
Method
method_id
Returns the ID for a method with the given name, arguments, and return type.
src/lib.rs:493
↓ 1 callers
Method
s
(&self)
src/ffi.rs:126
↓ 1 callers
Method
set_field
Set the value of a public field on this object.
src/lib.rs:782
↓ 1 callers
Method
set_static_field
Set the value of a static field on this class.
src/lib.rs:637
↓ 1 callers
Method
static_field
Get the value of a static field on this class.
src/lib.rs:610
↓ 1 callers
Method
static_method_id
Returns the ID for a static method on this class with the given name, arguments, and return type.
src/lib.rs:517
↓ 1 callers
Method
z
(&self)
src/ffi.rs:123
Method
Test
(int current)
examples/Test.java:20
Method
add
Add a path to the classpath. This can either be the path to a directory containing a number of compiled .class files, or the direct path to a .jar ar
src/lib.rs:301
Method
append
(String input)
examples/Test.java:36
Method
custom
Adds a custom, string based option (like passing in a command line argument to the `java` process).
src/lib.rs:154
Method
default
Uses the JNI interface to select the recommended initialisation options for the JVM. Automatically selects the most recently supported version of the
src/lib.rs:225
Method
description
(&'a self)
src/lib.rs:1163
Method
empty
()
src/ffi.rs:57
Method
fmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:1182
Method
from_exception
Create a new error from the most recent exception. The caller guarantees that an exception has occurred.
src/lib.rs:1143
Method
from_ffi
Create a new error from an underlying FFI code.
src/lib.rs:1133
Method
from_jvalue
Converts a Java value into its equivalent Rust version.
src/lib.rs:1001
Method
getCurrent
()
examples/Test.java:28
Method
ignore_unrecognized_arguments
Set whether the JVM should ignore unrecognised arguments, or trigger an exception when one is provided.
src/lib.rs:147
Method
incrementCurrent
()
examples/Test.java:24
Method
initial_heap_size
Set the initial heap size for the JVM in bytes. Call this with a size of 0 to unset any previously set value.
src/lib.rs:132
Method
is_instance_of
Returns true if this object is an instance of the given class. Both this object and the given class must have been created by the same JVM instance,
src/lib.rs:702
Function
main
()
examples/static.rs:14
Function
main
()
examples/instance.rs:14
Function
main
()
examples/static_field.rs:15
Function
main
()
examples/field.rs:15
Method
max_heap_size
Set the maximum heap size for the JVM in bytes. Call this with a size of 0 to unset any previously set value.
src/lib.rs:140
Method
name
Returns the class name of the exception.
src/lib.rs:1210
Method
new
Create an empty set of options.
src/lib.rs:103
Method
printMessage
()
examples/Test.java:40
Method
print_exception
Print the current exception, used for debugging purposes.
src/lib.rs:412
Method
superclass
Returns this object's superclass.
src/lib.rs:436