Root

data object Root : EvaluationScope

The scope every surface starts in, where relative and absolute pointers coincide.

Properties

Link copied to clipboard
open override val base: JsonPointer

The pointer that a relative binding in this scope is measured from.

Link copied to clipboard
open val index: Int?

The 0-based index of the item being iterated, or null outside a list template.

Functions

Link copied to clipboard

The index @index reads here, or null when this scope is not inside a list template.

Link copied to clipboard

The scope for item index of a template bound to path, nested inside this scope.

Link copied to clipboard

pointer rebased on this scope: absolute pointers unchanged, relative ones measured from EvaluationScope.base.

Link copied to clipboard
fun EvaluationScope.resolve(dataModel: JsonElement, pointer: JsonPointer): JsonElement?

The value pointer addresses in dataModel once rebased on this scope, or null when absent.