An immutable context, which can be used like a map.

Static variables

@:value(Context.create())staticfinalread onlyempty:Context = Context.create()

The empty context.

Static methods

staticinlineclone(this:ElementTree):AdjustableContext

Clones this context as an AdjustableContext.

staticinlinecreate(elements:Rest<IElement<Any>>):Context

Creates a new Context containing the elements associations.

staticinlineget<T>(this:ElementTree, key:Key<T>):Null<T>

Returns the value associated with key, or null if no such value exists.

staticinlinetoString(this:ElementTree):String

Returns a string representation of this context.

staticwith(this:ElementTree, elements:Rest<IElement<Any>>):Context

Returns a copy of this context with elements added to it, potentially overwriting existing associations.

staticwithout(this:ElementTree, keys:Rest<Key<Any>>):Context

Returns a copy of this context where all elements associated with keys are unset.