GraalModule

class GraalModule(val manifest: JimManifest, val directory: Path) : JimModule

A module evaluated as an ES module by GraalJS. Its top-level code already ran on load (so top-level Jim.register(...) calls are live); namespace is the module's export namespace, from which named exported functions (for the main/init entry and trigger-name conventions) are read.

Constructors

Link copied to clipboard
constructor(manifest: JimManifest, directory: Path)

Properties

Link copied to clipboard
open override val directory: Path
Link copied to clipboard
open override val exportedFunctions: List<String>

Names of the module's exported/callable functions.

Link copied to clipboard
open override val manifest: JimManifest
Link copied to clipboard
open val name: String

Functions

Link copied to clipboard
open override fun callbackFor(functionName: String): JimCallback?

A callable handle to an exported function, or null if it doesn't exist.

Link copied to clipboard
open fun hasFunction(functionName: String): Boolean

Whether the module exports a callable function with this name.