JSR223Variable

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

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)

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

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.

Properties

Link copied to clipboard
val formula: String
Link copied to clipboard
val language: String
Link copied to clipboard
val timeout: Long = 1000