getProperty

fun <T> getProperty(getter: (S) -> T, checker: (S) -> Boolean, default: () -> T): T(source)

Retrieve a property from a stack of (partially-)configured DSL data. Each element of the stack should have an indication of whether the property is set, and a value of the property (which is only accessed if the property is set). This is commonly implemented using lateinit vars (with internal val .. get() = this::prop.isInitialized as the property checker).


fun <T> getProperty(getter: (S) -> T, checker: (S) -> Boolean, default: T): T(source)
fun <T> getProperty(getter: (S) -> DSL.Data.Stackable<T>, default: () -> T): T(source)
fun <T> getProperty(getter: (S) -> DSL.Data.Stackable<T>, default: T): T(source)