public abstract class V8Value extends V8Data implements IV8Value
V8Runtime.| Modifier and Type | Field and Description |
|---|---|
protected static JavetObjectConverter |
OBJECT_CONVERTER
Shared object converter for default type conversions.
|
protected V8Runtime |
v8Runtime
The V8 runtime that owns this value.
|
| Modifier | Constructor and Description |
|---|---|
protected |
V8Value(V8Runtime v8Runtime)
Instantiates a new V8 value associated with the given runtime.
|
| Modifier and Type | Method and Description |
|---|---|
protected V8Runtime |
checkV8Runtime()
Checks that the V8 runtime is registered and returns it.
|
abstract void |
close() |
abstract boolean |
equals(V8Value v8Value)
Equals.
|
V8Runtime |
getV8Runtime()
Gets the V8 runtime that owns this value.
|
boolean |
isClosed()
Is closed.
|
abstract boolean |
sameValue(V8Value v8Value)
Same value.
|
abstract boolean |
strictEquals(V8Value v8Value)
Strict equals.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasBoolean, asDouble, asInt, asLong, asString, isNull, isNullOrUndefined, isUndefinedtoClone, toCloneprotected static final JavetObjectConverter OBJECT_CONVERTER
protected V8Runtime v8Runtime
protected V8Value(V8Runtime v8Runtime) throws JavetException
v8Runtime - the V8 runtimeJavetException - if the runtime is nullprotected V8Runtime checkV8Runtime() throws JavetException
JavetException - if the runtime is not registeredpublic abstract void close()
throws JavetException
close in interface IJavetClosableclose in interface java.lang.AutoCloseableJavetExceptionpublic abstract boolean equals(V8Value v8Value) throws JavetException
IV8ValueThe behavior is different from JS behavior but is the same as Java behavior.
equals in interface IV8Valuev8Value - the V8 valueJavetException - the javet exceptionpublic V8Runtime getV8Runtime()
getV8Runtime in interface IV8Valuepublic boolean isClosed()
IJavetClosableisClosed in interface IJavetClosablepublic abstract boolean sameValue(V8Value v8Value) throws JavetException
IV8ValueThe behavior is different from JS behavior but is the same as Java behavior.
sameValue in interface IV8Valuev8Value - the V8 valueJavetException - the javet exceptionpublic abstract boolean strictEquals(V8Value v8Value) throws JavetException
IV8ValueThe behavior is different from JS behavior but is the same as Java behavior.
strictEquals in interface IV8Valuev8Value - the V8 valueJavetException - the javet exception