YamlElementAdapter

interface YamlElementAdapter : BackedKpaElement<YamlElement> (source)

Common interface for all yamlkt adapters, exposing the underlying YamlElement.

Extends BackedKpaElement so the backing element is accessible through the shared interface and can be unwrapped via com.commonsware.kpointer.adapter.requireBacking. Concrete adapters also implement one of KpaStruct, KpaList, or KpaPrimitive, which makes them subtypes of KpaElement via those interfaces.

Inheritors

Properties

Link copied to clipboard
abstract val backing: YamlElement

Functions

Link copied to clipboard
fun KpaElement.toYamlElement(): YamlElement

Returns the YamlElement backing this adapter, or throws if this is not a YamlElementAdapter.