AbstractExprEvaluator

abstract class AbstractExprEvaluator(extension: String) : AbstractEngine

Constructors

Link copied to clipboard
constructor(extension: String)

Properties

Link copied to clipboard

The underlying JSR 223 script engine for this extension.

Functions

Link copied to clipboard
fun compute(expr: String): Any?

Evaluates the given expression and returns the result.

Link copied to clipboard
fun eval(expr: String): Boolean

Evaluates expr and returns its Boolean result.

Link copied to clipboard
fun resetContext(nullGlobalContext: Boolean = false)

Resets the script engine context, clearing all bindings and state.