QueryPathSegment

sealed interface QueryPathSegment

One part of a QueryPathTemplate: a named Property, a dynamic Key whose name the core captures from the logical path (a map's key, numbered by its Key.slot), or an array's Item.

Cases may be added in a minor release, so a when over it keeps an else branch.

Inheritors

Types

Link copied to clipboard
data object Item : QueryPathSegment

Each element of an array.

Link copied to clipboard
class Key @InternalWowApi constructor(val slot: Int) : QueryPathSegment

The dynamic key captured in slot, from 0 in the order the keys occur.

Link copied to clipboard
class Property @InternalWowApi constructor(val name: String) : QueryPathSegment

The property name.