MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / getTemplateAnnotationsJni

Function getTemplateAnnotationsJni

CedarJavaFFI/src/interface.rs:752–761  ·  view source on GitHub ↗
(
    mut env: JNIEnv<'a>,
    _: JClass,
    template_jstr: JString<'a>,
)

Source from the content-addressed store, hash-verified

750
751#[jni_fn("com.cedarpolicy.model.policy.Policy")]
752pub fn getTemplateAnnotationsJni<'a>(
753 mut env: JNIEnv<'a>,
754 _: JClass,
755 template_jstr: JString<'a>,
756) -> jvalue {
757 match get_template_annotations_internal(&mut env, template_jstr) {
758 Err(e) => jni_failed(&mut env, e.as_ref()),
759 Ok(annotations) => annotations.as_jni(),
760 }
761}
762
763pub fn get_template_annotations_internal<'a>(
764 env: &mut JNIEnv<'a>,

Callers

nothing calls this directly

Calls 4

jni_failedFunction · 0.85
as_jniMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected