AbstractEngine

abstract class AbstractEngine(extension: String)

Abstract base class that wraps a JSR 223 javax.script.ScriptEngine resolved by file extension.

Subclasses specify the script language via the extension parameter (e.g., "kts" for Kotlin, "py" for Python, "java" for Java).

Parameters

extension

the file extension used to look up the script engine (e.g., "kts", "py", "java")

Throws

if no engine is found for the given extension

Inheritors

Constructors

Link copied to clipboard
constructor(extension: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The underlying JSR 223 script engine for this extension.