JSR223Variable

data class JSR223Variable @JvmOverloads constructor(val language: String, val formula: String, val timeout: Long = 1000) : DependentVariable<Any?> (source)

This variable loads any JSR-233 language available in the classpath.

Parameters

language

can be the name of the language, the file extension, or its mime type

formula

the script that will get interpreted

timeout

how long should the interpreter be allowed to compute before giving up, in ms. Defaults to 1000ms.

Constructors

Link copied to clipboard
constructor(language: String, formula: String, timeout: Long = 1000)

builds a new JSR223Variable given a language name and a script.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val timeout: Long = 1000

Functions

Link copied to clipboard
open override fun getWith(variables: Map<String, Any?>): Any?

Given the current controlled variables, computes the current values for this variable.