Package-level declarations

Types

Link copied to clipboard

Abstract implementation of ContextIntention.

Link copied to clipboard
interface Autofiller<out V, I : ContextIntention<I>>

Infers context values from other context values.

Link copied to clipboard
interface Context<I : ContextIntention<I>>

A context maps ContextParamTypes to a values. Each context has an intention that defines which parameters are allowed and required.

Link copied to clipboard

Represents an intention for what a context is used for.

Link copied to clipboard
open class ContextParamType<V : Any, I : ContextIntention<I>>(val id: Key, val validate: (V) -> Boolean = { true }, val copy: (V) -> V = { it })

A context parameter type.

Link copied to clipboard
class DefaultingContextParamType<V : Any, I : ContextIntention<I>>(id: Key, val default: V, validate: (V) -> Boolean = { true }, copy: (V) -> V = { it }) : ContextParamType<V, I>

A context parameter type that has a default value instead of null.

Link copied to clipboard
class RequiredContextParamType<V : Any, I : ContextIntention<I>>(id: Key, validate: (V) -> Boolean = { true }, copy: (V) -> V = { it }) : ContextParamType<V, I>

A context parameter type that is required in the intention it belongs to.