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

Function parsePolicyTemplateJni

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

Source from the content-addressed store, hash-verified

797
798#[jni_fn("com.cedarpolicy.model.policy.Policy")]
799pub fn parsePolicyTemplateJni<'a>(
800 mut env: JNIEnv<'a>,
801 _: JClass,
802 template_jstr: JString<'a>,
803) -> jvalue {
804 match parse_policy_template_internal(&mut env, template_jstr) {
805 Err(e) => jni_failed(&mut env, e.as_ref()),
806 Ok(template_text) => template_text.as_jni(),
807 }
808}
809
810fn parse_policy_template_internal<'a>(
811 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