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

Function parseCedarSchemaJni

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

Source from the content-addressed store, hash-verified

554/// public string-based JSON interface to parse a schema in Cedar's cedar-readable format
555#[jni_fn("com.cedarpolicy.model.schema.Schema")]
556pub fn parseCedarSchemaJni<'a>(mut env: JNIEnv<'a>, _: JClass, schema_jstr: JString<'a>) -> jvalue {
557 match parse_cedar_schema_internal(&mut env, schema_jstr) {
558 Ok(v) => v.as_jni(),
559 Err(e) => jni_failed(&mut env, e.as_ref()),
560 }
561}
562
563fn parse_json_schema_internal<'a>(
564 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