MCPcopy Create free account

hub / github.com/benanders/rjni / functions

Functions64 in github.com/benanders/rjni

↓ 12 callersMethodoffset
Returns the integer offset of the corresponding method call function within the JNIEnv struct.
src/lib.rs:867
↓ 7 callersMethodclass
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 callersMethodhas_exception
Returns true when an exception has occurred.
src/lib.rs:394
↓ 5 callersMethodcall
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 callersMethodto_jvalue
Converts the value into a Java value suitable to pass as an argument to an FFI call.
src/lib.rs:970
↓ 4 callersMethodadd
(int a, int b)
examples/Test.java:32
↓ 4 callersMethodadd_option
Adds an option to the list of FFI options, used when we're constructing the final options list.
src/lib.rs:205
↓ 4 callersMethodclasspath
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 callersMethodstatic_signature
Returns the function signature component for this value.
src/lib.rs:848
↓ 4 callersMethodversion
Set the JVM version to use.
src/lib.rs:117
↓ 3 callersMethodcall_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 callersMethodclass_name
Returns the fully qualified name of the class this object is an instance of as a string.
src/lib.rs:681
↓ 3 callersFunctionfunction_signature
Returns the function signature as a string for a method with the given arguments and return type.
src/lib.rs:1053
↓ 2 callersMethodfield_id
Returns the ID for a field with the given name and type.
src/lib.rs:579
↓ 2 callersMethodinstantiate
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 callersMethodl
(&self)
src/ffi.rs:131
↓ 2 callersMethodsignature
(&self)
src/lib.rs:886
↓ 2 callersMethodstatic_field_id
Returns the ID for a static field on this class with the given name and type.
src/lib.rs:595
↓ 1 callersMethodb
(&self)
src/ffi.rs:124
↓ 1 callersMethodbuild
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 callersMethodc
(&self)
src/ffi.rs:125
↓ 1 callersMethodclear_exception
Clears the most recently triggered exception.
src/lib.rs:399
↓ 1 callersFunctionconvert_string
Convert the given Java string into the proper Rust version, and push it onto the given String.
src/lib.rs:1088
↓ 1 callersMethodd
(&self)
src/ffi.rs:130
↓ 1 callersMethodexception_obj
Get the throwable instance of the most recently occurred exception.
src/lib.rs:404
↓ 1 callersMethodf
(&self)
src/ffi.rs:129
↓ 1 callersMethodfield
Get the value of a public field on this object.
src/lib.rs:755
↓ 1 callersMethodi
(&self)
src/ffi.rs:127
↓ 1 callersMethodj
(&self)
src/ffi.rs:128
↓ 1 callersFunctionlatest_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 callersMethodmessage
Returns the detailed error message associated with the exception.
src/lib.rs:1215
↓ 1 callersMethodmethod_id
Returns the ID for a method with the given name, arguments, and return type.
src/lib.rs:493
↓ 1 callersMethods
(&self)
src/ffi.rs:126
↓ 1 callersMethodset_field
Set the value of a public field on this object.
src/lib.rs:782
↓ 1 callersMethodset_static_field
Set the value of a static field on this class.
src/lib.rs:637
↓ 1 callersMethodstatic_field
Get the value of a static field on this class.
src/lib.rs:610
↓ 1 callersMethodstatic_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 callersMethodz
(&self)
src/ffi.rs:123
MethodTest
(int current)
examples/Test.java:20
Methodadd
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
Methodappend
(String input)
examples/Test.java:36
Methodcustom
Adds a custom, string based option (like passing in a command line argument to the `java` process).
src/lib.rs:154
Methoddefault
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
Methoddescription
(&'a self)
src/lib.rs:1163
Methodempty
()
src/ffi.rs:57
Methodfmt
(&self, f: &mut fmt::Formatter)
src/lib.rs:1182
Methodfrom_exception
Create a new error from the most recent exception. The caller guarantees that an exception has occurred.
src/lib.rs:1143
Methodfrom_ffi
Create a new error from an underlying FFI code.
src/lib.rs:1133
Methodfrom_jvalue
Converts a Java value into its equivalent Rust version.
src/lib.rs:1001
MethodgetCurrent
()
examples/Test.java:28
Methodignore_unrecognized_arguments
Set whether the JVM should ignore unrecognised arguments, or trigger an exception when one is provided.
src/lib.rs:147
MethodincrementCurrent
()
examples/Test.java:24
Methodinitial_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
Methodis_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
Functionmain
()
examples/static.rs:14
Functionmain
()
examples/instance.rs:14
Functionmain
()
examples/static_field.rs:15
Functionmain
()
examples/field.rs:15
Methodmax_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
Methodname
Returns the class name of the exception.
src/lib.rs:1210
Methodnew
Create an empty set of options.
src/lib.rs:103
MethodprintMessage
()
examples/Test.java:40
Methodprint_exception
Print the current exception, used for debugging purposes.
src/lib.rs:412
Methodsuperclass
Returns this object's superclass.
src/lib.rs:436