Builder

value class Builder

DSL scope for building MutableObjectProxy instances.

Functions

Link copied to clipboard

Returns the fully constructed proxy.

Link copied to clipboard
fun put(key: String, value: Any?)

Set the value associated with a given key in the proxy. The value will be converted to a polyglot value using Value.asValue.

Link copied to clipboard
fun putFunction(key: String, function: ProxyExecutable)

Associates a ProxyExecutable with the specified key. The function receives a Value array, containing the arguments passed by the caller.

Link copied to clipboard
fun putObject(key: String)

Associates a new empty object to the specified key.

Associates a new object obtained using the builder function to the specified key.