# webimage-preview 25.6.0-elide.4 > API reference for webimage-preview. Each page below is Markdown; the HTML page of the same name has the same content. llms-full.txt has every page in one file, and api.json is the apidocs/1 model. ## When to use this Use this API reference when you write, read or review code that uses webimage-preview 25.6.0-elide.4. ## Overview - [⬢ webimage-preview](index.md): packages and types - [Alphabetical index](index-all.md): find `Type.member` or search by behavior. Check the declaring type and overload, then follow the matching link. - [Declaration contracts](contracts.ndjson): full structured records for a known `Type.member`, including documented parameters, returns and throws. - [llms-full.txt](llms-full.txt): every page in one file - [api.json](api.json): the apidocs/1 model ## Pages - [▣ Package org.graalvm.webimage.api](org/graalvm/webimage/api/index.md): This package provides an interface between Java code and the embedding JavaScript code. - [@ JS (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.md): Replaces the body of a Java method with JavaScript code. DEFAULT_ARGUMENTS: The default arguments string is an empty string used to denote the default value of the args member. value(): JavaScript statements that form the body of this method. Returns: a snippet of JavaScript source code args(): If specified, overrides parameter names seen by the JavaScript code. Returns: the new parameter names (their count must match the number of parameters), or DEFAULT_ARGUMENTS if the original names should be used ( - [@ JS.Code (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.Code.md): A snippet of JavaScript code that must be included in the image. - [@ JS.Code.Include (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.Code.Include.md): Designates the path to the JavaScript file with the code that must be included in the image. - [@ JS.Code.Include.Group (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.Code.Include.Group.md) - [@ JS.Coerce (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.Coerce.md): 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. - [@ JS.Export (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.Export.md): Denotes that the annotated Java class should be exported from the VM class. - [@ JS.Import (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JS.Import.md): Denotes that the annotated class represents a JavaScript class from the global scope. value(): Denotes the name of the JavaScript class that is being imported. Returns: Name of the JavaScript class that the annotated Java class should correspond to. - [◆ JSBigInt (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSBigInt.md): Java representation of a JavaScript BigInt value. - [◆ JSBoolean (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSBoolean.md): Java representation of a JavaScript Boolean value. - [◆ JSNumber (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSNumber.md): Java representation of a JavaScript Number value. - [◆ JSObject (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSObject.md): A JSObject is a Java-side wrapper for JavaScript objects. create(): Creates an empty JavaScript object. Returns: an empty JavaScript object get(Object): Returns the value of the key passed as the argument in the JavaScript object. Returns: the value of the key passed as the argument in the JavaScript object get(Object, Class): Same as get(Object) but the returned values is coerced to the given type. Throws: ClassCastException - If the returned value is not of the given type and can't be coerced to it. set(Object, Object): Sets the value of the key passed as the argument in the JavaScript object. keys(): Returns the array of property keys for this obj - [@ JSResource (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSResource.md) - [@ JSResource.Group (annotation interface in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSResource.Group.md) - [◆ JSString (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSString.md): Java representation of a JavaScript String value. asString(): Cannot use stringValue() because the implementation of that method calls this method. - [◆ JSSymbol (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSSymbol.md): Java representation of a JavaScript Symbol value. - [◆ JSUndefined (class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSUndefined.md): Java representation of the JavaScript undefined value. isUndefined(): Checks whether this is the JavaScript undefined value. - [◆ JSValue (abstract class in org.graalvm.webimage.api)](org/graalvm/webimage/api/JSValue.md): Java representation of a JavaScript value. checkedCoerce(Object, Class): Attempts to coerce a given value to the specified Java type. Returns: the coerced value as an instance of cls Throws: ClassCastException - if the coercion fails or is unsupported isUndefined(Object): Checks whether the given value is the JavaScript undefined value. isUndefined(JSValue): Specialization of isUndefined(Object) that avoids the type check for JSValue. isUndefined(): Checks whether this is the JavaScript undefined value. stringValue(): Returns the JS string representation of this value (by calling the JS toString method on it) and "undefined" for the JS - [⚡︎ ThrownFromJavaScript (exception in org.graalvm.webimage.api)](org/graalvm/webimage/api/ThrownFromJavaScript.md): Represents the error value thrown in JavaScript. ## Indexes - [Packages](packages.md): every package with its summary and type counts - [All types](types.md): every type, nested ones too, by name - [Index](index-all.md): every declaration from A to Z