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

Function cedarToJsonJni

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

Source from the content-addressed store, hash-verified

1117
1118#[jni_fn("com.cedarpolicy.model.schema.Schema")]
1119pub fn cedarToJsonJni<'a>(mut env: JNIEnv<'a>, _: JClass, cedar_schema: JString<'a>) -> jvalue {
1120 match get_json_schema_internal(&mut env, cedar_schema) {
1121 Ok(val) => val.as_jni(),
1122 Err(e) => jni_failed(&mut env, e.as_ref()),
1123 }
1124}
1125
1126pub fn get_json_schema_internal<'a>(
1127 env: &mut JNIEnv<'a>,

Callers

nothing calls this directly

Calls 4

get_json_schema_internalFunction · 0.85
jni_failedFunction · 0.85
as_jniMethod · 0.80
as_refMethod · 0.45

Tested by

no test coverage detected