Package-level declarations

Types

Link copied to clipboard
abstract class AbstractEngine : Closeable

Abstract base class that wraps a JSR 223 ScriptEngine, resolved by file extension or created by the subclass.

Link copied to clipboard
abstract class AbstractEnginePool<T : AbstractEngine>(val size: Int) : Closeable

Abstract base class for a fixed-size pool of script engines, shared by AbstractScriptPool and AbstractExprEvaluatorPool.

Link copied to clipboard
abstract class AbstractExprEvaluator(extension: String) : AbstractEngine

Evaluates expressions with a JSR 223 script engine.

Link copied to clipboard
abstract class AbstractExprEvaluatorPool<T : AbstractExprEvaluator>(size: Int, val resetEvery: Int) : AbstractEnginePool<T>

Abstract base class for a pool of AbstractExprEvaluator instances.

Link copied to clipboard

Abstract base class for script execution that supports named variable bindings with type parameters.

Link copied to clipboard
abstract class AbstractScriptPool<T : AbstractScript>(size: Int, nullGlobalContext: Boolean) : AbstractEnginePool<T>

Abstract base class for a pool of AbstractScript instances.

Link copied to clipboard

Best-effort guards that reject the most common, literal JVM-termination calls in evaluated JVM (Kotlin/Java) scripts: System.exit(...), kotlin.system.exitProcess(...), and Runtime.getRuntime().exit(...) / .halt(...).

Link copied to clipboard

Thrown by a pool's timed evaluation, such as AbstractExprEvaluatorPool.eval with a timeout, when the evaluation does not finish in time.

Link copied to clipboard

Utility object providing extension functions for ScriptEngine.