public abstract class V8Value extends V8Data implements IV8Value
Modifier and Type | Field and Description |
---|---|
protected static JavetObjectConverter |
OBJECT_CONVERTER |
protected V8Runtime |
v8Runtime |
Modifier | Constructor and Description |
---|---|
protected |
V8Value(V8Runtime v8Runtime) |
Modifier and Type | Method and Description |
---|---|
protected V8Runtime |
checkV8Runtime() |
abstract void |
close() |
abstract boolean |
equals(V8Value v8Value)
Equals.
|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
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, wait
asBoolean, asDouble, asInt, asLong, asString, isNull, isNullOrUndefined, isUndefined
toClone, toClone
protected static final JavetObjectConverter OBJECT_CONVERTER
protected V8Runtime v8Runtime
protected V8Value(V8Runtime v8Runtime) throws JavetException
JavetException
protected V8Runtime checkV8Runtime() throws JavetException
JavetException
public abstract void close() throws JavetException
close
in interface IJavetClosable
close
in interface java.lang.AutoCloseable
JavetException
public abstract boolean equals(V8Value v8Value) throws JavetException
IV8Value
The behavior is different from JS behavior but is the same as Java behavior.
equals
in interface IV8Value
v8Value
- the V8 valueJavetException
- the javet exceptionpublic V8Runtime getV8Runtime()
IV8Value
getV8Runtime
in interface IV8Value
public boolean isClosed()
IJavetClosable
isClosed
in interface IJavetClosable
public abstract boolean sameValue(V8Value v8Value) throws JavetException
IV8Value
The behavior is different from JS behavior but is the same as Java behavior.
sameValue
in interface IV8Value
v8Value
- the V8 valueJavetException
- the javet exceptionpublic abstract boolean strictEquals(V8Value v8Value) throws JavetException
IV8Value
The behavior is different from JS behavior but is the same as Java behavior.
strictEquals
in interface IV8Value
v8Value
- the V8 valueJavetException
- the javet exception