AttributePath

fun AttributePath(name: String, parent: AttributePath? = null): AttributePath

Creates a new AttributePath reference with the given name and optional parent path

Parameters

name

The name or key of this element

parent

The parent AttributePath (if any) of this element. If parent is null then this instance represents a top-level attribute.


Creates a new AttributePath reference with the given index and parent path

Parameters

index

The index (starting at 0) of this element

parent

The parent AttributePath of this element