ScopePathBuilder

A concrete implementation of AbstractPathBuilder for creating a scope resolution Path. This is the standard builder used for general-purpose path construction.

Constructors

Link copied to clipboard
constructor(path: Path)

Properties

Link copied to clipboard

A starting point for the DSL chain. Returns the concrete builder instance.

Link copied to clipboard
open override val path: Path

The Path object being constructed.

Functions

Link copied to clipboard
infix fun of(root: Root): Path

Finalizes the path construction, returning the completed Path object. This should be the last call in the DSL chain, terminating at the Root of the scope hierarchy.

infix fun of(qualifier: Qualifier): ScopePathBuilder

Appends a Qualifier to the current path, representing a step down into a child scope. The of is used as an infix operator to create a natural, readable DSL.

Link copied to clipboard
inline fun <T : Any> scope(qualifier: Qualifier = TypeQualifier(T::class)): Qualifier

Creates a TypeQualifier for the given type T, to be used within the path.