PathSegment

sealed class PathSegment(source)

One segment of a tokenized FieldError.path. Paths look like scenarios[3].runOverrides.lengthOfReplication; tokenization produces an alternating-but-not-strictly sequence of Name (field reference) and Index (list index) segments.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class Index(val n: Int) : PathSegment

A zero-based list-index segment, e.g. [3].

Link copied to clipboard
data class Name(val name: String) : PathSegment

A named field segment, e.g. runOverrides.