public final class V8ValueUndefined extends V8Value implements IV8ValueNonProxyable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNDEFINED
The constant UNDEFINED.
|
OBJECT_CONVERTER, v8Runtime
Constructor and Description |
---|
V8ValueUndefined(V8Runtime v8Runtime)
Instantiates a new V8 value undefined.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
A simulation of the JS
if (variable) |
void |
close() |
boolean |
equals(V8Value v8Value)
Equals.
|
boolean |
sameValue(V8Value v8Value)
Same value.
|
boolean |
strictEquals(V8Value v8Value)
Strict equals.
|
V8ValueUndefined |
toClone(boolean referenceCopy)
Get a clone of the current V8 value.
|
java.lang.String |
toString() |
checkV8Runtime, getV8Runtime, isClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDouble, asInt, asLong, asString, isNull, isNullOrUndefined, isUndefined
toClone
public static final java.lang.String UNDEFINED
public V8ValueUndefined(V8Runtime v8Runtime) throws JavetException
v8Runtime
- the V8 runtimeJavetException
- the javet exceptionpublic boolean asBoolean()
IV8Value
if (variable)
public void close() throws JavetException
close
in interface IJavetClosable
close
in interface java.lang.AutoCloseable
close
in class V8Value
JavetException
public boolean equals(V8Value v8Value)
IV8Value
The behavior is different from JS behavior but is the same as Java behavior.
public boolean sameValue(V8Value v8Value)
IV8Value
The behavior is different from JS behavior but is the same as Java behavior.
public boolean strictEquals(V8Value v8Value)
IV8Value
The behavior is different from JS behavior but is the same as Java behavior.
strictEquals
in interface IV8Value
strictEquals
in class V8Value
v8Value
- the V8 valuepublic V8ValueUndefined toClone(boolean referenceCopy) throws JavetException
IV8Cloneable
toClone
in interface IV8Cloneable
referenceCopy
- the reference copyJavetException
- the javet exceptionpublic java.lang.String toString()
toString
in class java.lang.Object