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

Function parseJsonSchemaJni

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

Source from the content-addressed store, hash-verified

545/// Public string-based JSON interface to parse a schema in Cedar's JSON format
546#[jni_fn("com.cedarpolicy.model.schema.Schema")]
547pub fn parseJsonSchemaJni<'a>(mut env: JNIEnv<'a>, _: JClass, schema_jstr: JString<'a>) -> jvalue {
548 match parse_json_schema_internal(&mut env, schema_jstr) {
549 Ok(v) => v.as_jni(),
550 Err(e) => jni_failed(&mut env, e.as_ref()),
551 }
552}
553
554/// public string-based JSON interface to parse a schema in Cedar's cedar-readable format
555#[jni_fn("com.cedarpolicy.model.schema.Schema")]

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