Package org.graalvm.webimage.api
package org.graalvm.webimage.api
This package provides an interface between Java code and the embedding JavaScript code.
This functionality is limited to the WebAssembly backend for Native Image.
Any functionality specified here is experimental, subject to change, and may not fully work yet.
- Since:
- 25.0
-
ClassDescriptionReplaces the body of a Java method with JavaScript code.A snippet of JavaScript code that must be included in the image.Designates the path to the JavaScript file with the code that must be included in the image.When this annotation is used together with the
JS
annotation, the arguments and return values of the respective method undergo implicit Java-to-JavaScript and JavaScript-to-Java conversions.Denotes that the annotated Java class should be exported from the VM class.Denotes that the annotated class represents a JavaScript class from the global scope.Java representation of a JavaScriptBigInt
value.Java representation of a JavaScriptBoolean
value.Represents the error value thrown in JavaScript.Java representation of a JavaScriptNumber
value.AJSObject
is a Java-side wrapper for JavaScript objects.Java representation of a JavaScriptString
value.Java representation of a JavaScriptSymbol
value.Java representation of the JavaScriptundefined
value.Java representation of a JavaScript value.