Intrinsic

@Introspected
@DefaultScope(value = Context::class)
annotation class Intrinsic(val global: String = "", val language: GraalVMGuest = GraalVMGuest.JAVASCRIPT, val internal: Boolean = true)

Intrinsic Class

This annotation marks a class as an "intrinsic" which is used by Elide's guest VM system to implement native methods provided to guest code. Intrinsics are initialized early and included with every spawned context as injected globals present within every scope.

Parameters

global

Global name implemented by this class; only present when a single intrinsic implementation class corresponds 1:1 with a global name in the guest language.

language

Defines the language this intrinsic is implemented for; defaults to JavaScript which is the only supported guest language at this time.

Properties

Link copied to clipboard
Link copied to clipboard
val internal: Boolean = true
Link copied to clipboard