DeclaredParameter

class DeclaredParameter<out T>(val property: KProperty<*>, val argument: T)(source)

A Parameter declared in a ParameterizeScope, providing access to the selected argument and enabling its use through property delegation.

This class implements referential equality, that way parameters declared at different times can be reliably distinguished even if they were declared with the same argument.

See also

Constructors

Link copied to clipboard
constructor(property: KProperty<*>, argument: T)

Properties

Link copied to clipboard

The argument that this parameter was declared with.

Link copied to clipboard

The Kotlin property that this parameter was declared for.

Functions

Link copied to clipboard
inline operator fun getValue(thisRef: Nothing?, property: KProperty<*>): T

Returns the argument that this parameter was declared with.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the current argument.