KeyPath

A total, typed read path.

A key path is also a Kotlin function from Root to Value. This lets a path participate directly in APIs such as map, sortedBy, and groupBy while retaining its path identity and composition capabilities.

Inheritors

Properties

Link copied to clipboard
abstract val __kpaths_id: PathId

Library-reserved structural identity metadata.

Link copied to clipboard

Library-reserved focused-value type metadata.

Functions

Link copied to clipboard

Appends a total read path.

Link copied to clipboard

Appends a path after force-unwrapping a nullable focus.

Link copied to clipboard

Optionally appends a read path after a nullable focus.

Link copied to clipboard

Returns this path's structural suffix after after, or null when after is not its ancestor.

Link copied to clipboard
abstract fun get(root: Root): Value

Reads the focused value from root.

Link copied to clipboard
open override fun getAny(root: Root): Any?

Reads this path while erasing the focused value's static type.

Link copied to clipboard
open operator override fun invoke(root: Root): Value

Invokes this path as its total read function.

Link copied to clipboard

Returns whether this path identifies a descendant (or the same location as) ancestor.

Link copied to clipboard

Returns whether this path identifies an ancestor (or the same location as) other.

Link copied to clipboard

Kotlin-friendly spelling of appending.

Link copied to clipboard
Link copied to clipboard

Kotlin-friendly spelling of optional key-path appendingOptional.