T
- the type parameterpublic interface IV8ValuePrimitiveObject<T extends V8Value> extends IV8Value
Modifier and Type | Method and Description |
---|---|
default boolean |
asBoolean()
A simulation of the JS
if (variable) |
default double |
asDouble()
As double.
|
default int |
asInt()
As int.
|
default long |
asLong()
As long.
|
default java.lang.String |
asString()
As string.
|
T |
valueOf()
Get the primitive value of the primitive object.
|
equals, getV8Runtime, isNull, isNullOrUndefined, isUndefined, sameValue, strictEquals
close, isClosed
toClone, toClone
default boolean asBoolean() throws JavetException
IV8Value
if (variable)
asBoolean
in interface IV8Value
JavetException
- the javet exceptiondefault double asDouble() throws JavetException
IV8Value
asDouble
in interface IV8Value
JavetException
- the javet exceptiondefault int asInt() throws JavetException
IV8Value
asInt
in interface IV8Value
JavetException
- the javet exceptiondefault long asLong() throws JavetException
IV8Value
asLong
in interface IV8Value
JavetException
- the javet exceptiondefault java.lang.String asString() throws JavetException
IV8Value
asString
in interface IV8Value
JavetException
- the javet exceptionT valueOf() throws JavetException
JavetException
- the javet exception