pub struct JvmMethod { /* private fields */ }Expand description
Represents a method in a class in the JVM.
Implementations§
Source§impl<'a> JvmMethod
impl<'a> JvmMethod
Sourcepub fn call_constructor(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_constructor_method: &JvmMethod,
args: *const jvalue,
) -> jobject
pub fn call_constructor( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_constructor_method: &JvmMethod, args: *const jvalue, ) -> jobject
Tries to call the given JVM object constructor in the given JVM class. Currently panics if a JVM exception occurs.
Sourcepub fn call_static_boolean_method(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method: &JvmMethod,
args: *const jvalue,
) -> jboolean
pub fn call_static_boolean_method( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method: &JvmMethod, args: *const jvalue, ) -> jboolean
Tries to call the given JVM static boolean method in the given JVM class. Currently panics if a JVM exception occurs.
Sourcepub fn call_static_int_method(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method: &JvmMethod,
args: *const jvalue,
) -> jint
pub fn call_static_int_method( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method: &JvmMethod, args: *const jvalue, ) -> jint
Tries to call the given JVM static int method in the given JVM class. Currently panics if a JVM exception occurs.
Sourcepub fn call_static_object_method(
jvm_attachment: &'a JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method: &JvmMethod,
args: *const jvalue,
) -> Option<JvmObject<'a>>
pub fn call_static_object_method( jvm_attachment: &'a JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method: &JvmMethod, args: *const jvalue, ) -> Option<JvmObject<'a>>
Sourcepub fn call_static_void_method(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method: &JvmMethod,
args: *const jvalue,
)
pub fn call_static_void_method( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method: &JvmMethod, args: *const jvalue, )
Tries to call the given JVM static void method in the given JVM class. Currently panics if a JVM exception occurs.
Sourcepub fn get_constructor(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method_signature: &str,
) -> Option<JvmMethod>
pub fn get_constructor( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method_signature: &str, ) -> Option<JvmMethod>
Tries to resolve the JVM constructor with the given signature in the given JVM class.
Sourcepub fn get_method(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method_name: &str,
jvm_method_signature: &str,
) -> Option<JvmMethod>
pub fn get_method( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method_name: &str, jvm_method_signature: &str, ) -> Option<JvmMethod>
Tries to resolve the JVM method with the given name and signature in the given JVM class.
Sourcepub fn get_static_method(
jvm_attachment: &JvmAttachment,
jvm_class: &JvmClass<'_>,
jvm_method_name: &str,
jvm_method_signature: &str,
) -> Option<JvmMethod>
pub fn get_static_method( jvm_attachment: &JvmAttachment, jvm_class: &JvmClass<'_>, jvm_method_name: &str, jvm_method_signature: &str, ) -> Option<JvmMethod>
Tries to resolve the static JVM method with the given name and signature in the given JVM class.