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, strictEqualsclose, isClosedtoClone, toClonedefault boolean asBoolean()
throws JavetException
IV8Valueif (variable)asBoolean in interface IV8ValueJavetException - the javet exceptiondefault double asDouble()
throws JavetException
IV8ValueasDouble in interface IV8ValueJavetException - the javet exceptiondefault int asInt()
throws JavetException
IV8ValueasInt in interface IV8ValueJavetException - the javet exceptiondefault long asLong()
throws JavetException
IV8ValueasLong in interface IV8ValueJavetException - the javet exceptiondefault java.lang.String asString()
throws JavetException
IV8ValueasString in interface IV8ValueJavetException - the javet exceptionT valueOf() throws JavetException
JavetException - the javet exception