Stackable

Convenience delegate for multiple points of configuration DSLs. It keeps track of whether the value has been explicitly set, and is compatible with ConfigStack.getProperty.

Use as internal val _foo = Stackable<Int>(); var foo by _foo, then access as stack.getProperty(DSLType::_foo, default = 42).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
operator fun getValue(thisRef: DSL.Data, property: KProperty<*>): T
Link copied to clipboard
operator fun setValue(thisRef: DSL.Data, property: KProperty<*>, v: T)