MetaProvider

fun interface MetaProvider : ValueProvider

A container for meta nodes

Functions

getMeta
Link copied to clipboard
common
abstract fun getMeta(name: Name): Meta?
getValue
Link copied to clipboard
common
open override fun getValue(name: Name): Value?

Inheritors

Meta
Link copied to clipboard
MutableMetaProvider
Link copied to clipboard

Extensions

boolean
Link copied to clipboard
common
fun MetaProvider.boolean(key: Name? = null): ReadOnlyProperty<Any?, Boolean?>
fun MetaProvider.boolean(default: Boolean, key: Name? = null): ReadOnlyProperty<Any?, Boolean>
fun MetaProvider.boolean(key: Name? = null, default: () -> Boolean): ReadOnlyProperty<Any?, Boolean>
double
Link copied to clipboard
common
fun MetaProvider.double(key: Name? = null): ReadOnlyProperty<Any?, Double?>
fun MetaProvider.double(default: Double, key: Name? = null): ReadOnlyProperty<Any?, Double>
enum
Link copied to clipboard
common
inline fun <E : Enum<E>> MetaProvider.enum(default: E, key: Name? = null): ReadOnlyProperty<Any?, E>
float
Link copied to clipboard
common
fun MetaProvider.float(key: Name? = null): ReadOnlyProperty<Any?, Float?>
fun MetaProvider.float(default: Float, key: Name? = null): ReadOnlyProperty<Any?, Float>
int
Link copied to clipboard
common
fun MetaProvider.int(key: Name? = null): ReadOnlyProperty<Any?, Int?>
fun MetaProvider.int(default: Int, key: Name? = null): ReadOnlyProperty<Any?, Int>
long
Link copied to clipboard
common
fun MetaProvider.long(key: Name? = null): ReadOnlyProperty<Any?, Long?>
fun MetaProvider.long(default: Long, key: Name? = null): ReadOnlyProperty<Any?, Long>
node
Link copied to clipboard
common
fun MetaProvider.node(key: Name? = null): ReadOnlyProperty<Any?, Meta?>
fun <T> MetaProvider.node(key: Name? = null, converter: MetaConverter<T>): ReadOnlyProperty<Any?, T?>
number
Link copied to clipboard
common
fun MetaProvider.number(key: Name? = null): ReadOnlyProperty<Any?, Number?>
fun MetaProvider.number(default: Number, key: Name? = null): ReadOnlyProperty<Any?, Number>
fun MetaProvider.number(key: Name? = null, default: () -> Number): ReadOnlyProperty<Any?, Number>
string
Link copied to clipboard
common
fun MetaProvider.string(key: Name? = null): ReadOnlyProperty<Any?, String?>
fun MetaProvider.string(default: String, key: Name? = null): ReadOnlyProperty<Any?, String>
fun MetaProvider.string(key: Name? = null, default: () -> String): ReadOnlyProperty<Any?, String>
value
Link copied to clipboard
common
fun MetaProvider.value(key: Name? = null): ReadOnlyProperty<Any?, Value?>

A property delegate that uses custom key

fun <R> MetaProvider.value(key: Name? = null, reader: (Value?) -> R): ReadOnlyProperty<Any?, R>