JSR223Variable
data class JSR223Variable @JvmOverloads constructor(language: String, formula: String, timeout: Long) : DependentVariable<Any?>
Content copied to clipboard
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
fun JSR223Variable(language: String, formula: String, timeout: Long = 1000)
Content copied to clipboard
builds a new JSR223Variable given a language name and a script.