CompareOperand

sealed interface CompareOperand(source)

One side of a comparison (SPEC.md §9): a node of a stored document, or a JSON value given as text.

Inheritors

Types

Link copied to clipboard
class Json(val json: String) : CompareOperand

A JSON value given as text, json, read with the rules and limits of an insert (SPEC.md §1); invalid text is rejected the same way.

Link copied to clipboard

A JSON value read from source when the comparison runs, with the rules of Json. The stream isn't closed and can be read only once, so a second run (such as collecting a diff flow again) reads what's left of it.

Link copied to clipboard
class Stored(val node: NodeRef) : CompareOperand

The value of node; its document must be visible when the comparison runs.