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.
Classes
public final class JSBigIntJava representation of a JavaScript
BigIntvalue.public final class JSBooleanJava representation of a JavaScript
Booleanvalue.public final class JSNumberJava representation of a JavaScript
Numbervalue.public class JSObjectA
JSObjectis a Java-side wrapper for JavaScript objects.public final class JSStringJava representation of a JavaScript
Stringvalue.public final class JSSymbolJava representation of a JavaScript
Symbolvalue.public final class JSUndefinedJava representation of the JavaScript
undefinedvalue.public abstract class JSValueJava representation of a JavaScript value.
Exceptions
public final class ThrownFromJavaScriptRepresents the error value thrown in JavaScript.
Annotations
public @interface JSReplaces the body of a Java method with JavaScript code.
public @interface .CodeA snippet of JavaScript code that must be included in the image.
public @interface .CoerceWhen this annotation is used together with the
JSannotation, the arguments and return values of the respective method undergo implicit Java-to-JavaScript and JavaScript-to-Java conversions.public @interface .ExportDenotes that the annotated Java class should be exported from the VM class.
public @interface .ImportDenotes that the annotated class represents a JavaScript class from the global scope.
public @interface JSResourceNo description.
public @interface .GroupNo description.