MCPcopy Index your code
hub / github.com/cedar-policy/cedar-java / templateEffectJni

Function templateEffectJni

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

Source from the content-addressed store, hash-verified

871
872#[jni_fn("com.cedarpolicy.model.policy.Policy")]
873pub fn templateEffectJni<'a>(mut env: JNIEnv<'a>, _: JClass, policy_jstr: JString<'a>) -> jvalue {
874 match template_effect_jni_internal(&mut env, policy_jstr) {
875 Err(e) => jni_failed(&mut env, e.as_ref()),
876 Ok(effect) => effect.as_jni(),
877 }
878}
879
880fn template_effect_jni_internal<'a>(
881 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