install

fun install(path: String, value: Any, context: PolyglotContext, language: GuestLanguage)

Installs a value as a binding for the target language in a given context.

The specified path may contain one or more segments separated by ., which will cause intermediate proxy objects to be created, allowing the creation of more structured intrinsics.

Parameters

path

The path specifying the binding point for the value.

value

The value being used as binding.

context

The context to which the binding will be installed.

language

The target language to which the binding will be made available.