WritableKeyPath

A typed property path that replaces a focus and returns the resulting root.

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.

Appends two writable paths, retaining immutable replacement capability.

Link copied to clipboard

Appends a path after force-unwrapping a nullable focus.

Appends a writable 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
open fun modify(root: Root, update: (Value) -> Value): Root

Transforms the focused value and returns the resulting root.

Link copied to clipboard
abstract fun set(root: Root, value: Value): Root

Replaces the focused value and returns the resulting root.

Link copied to clipboard

Kotlin-friendly spelling of appending.

Kotlin-friendly spelling of writable appending.

Link copied to clipboard

Kotlin-friendly spelling of optional key-path appendingOptional.