Class JSValue
java.lang.Object
org.graalvm.webimage.api.JSValue
Java representation of a JavaScript value.
The subclasses of this class represent JavaScript's six primitive data types and the object data
type. The JavaScript
Null
data type does not have a special representation -- the
JavaScript null
value is directly mapped to the Java null
value.-
Method Details
-
undefined
-
typeof
-
stringValue
-
asBoolean
-
asByte
-
asShort
-
asChar
-
asInt
-
asFloat
-
asLong
-
asDouble
-
asBigInteger
-
asString
-
asBooleanArray
public boolean[] asBooleanArray() -
asByteArray
public byte[] asByteArray() -
asShortArray
public short[] asShortArray() -
asCharArray
public char[] asCharArray() -
asIntArray
public int[] asIntArray() -
asFloatArray
public float[] asFloatArray() -
asLongArray
public long[] asLongArray() -
asDoubleArray
public double[] asDoubleArray() -
as
-
toString
-