Interpreter

One owner-bound active evaluator. It reuses one prepared engine, accepts only snapshots/pointers from its PreparedModel, and returns detached support, validation, and computation records.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override val owner: ModelOwnerIdentity

Functions

Link copied to clipboard
@JvmOverloads
fun applyComputations(snapshot: DocumentSnapshot, locale: String = "en_US"): DocumentSnapshot

Same-document compute-and-apply convenience, defined as one retained compute followed by ComputationReport.applyTo.

Link copied to clipboard
@JvmOverloads
fun compute(snapshot: DocumentSnapshot, locale: String = "en_US"): ComputationReport

Evaluate every model computation against one owned Document without mutating the snapshot.

Link copied to clipboard

Report unsupported rules and computations once, independently of any Document.

Link copied to clipboard
@JvmOverloads
fun validateFull(snapshot: DocumentSnapshot, locale: String = "en_US"): ValidationReport

Validate every applicable rule against one owned Document snapshot.

Link copied to clipboard
@JvmOverloads
fun validatePart(snapshot: DocumentSnapshot, relevant: List<RelevantEntityPointer>, locale: String = "en_US"): ValidationReport

Validate only rules relevant to the supplied exact or all-repetitions model pointers.