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
  • Class
    Description
    Replaces 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 JavaScript BigInt value.
    Java representation of a JavaScript Boolean value.
    Represents the error value thrown in JavaScript.
    Java representation of a JavaScript Number value.
    A JSObject is a Java-side wrapper for JavaScript objects.
     
     
    Java representation of a JavaScript String value.
    Java representation of a JavaScript Symbol value.
    Java representation of the JavaScript undefined value.
    Java representation of a JavaScript value.