public class V8VirtualValue extends java.lang.Object implements IJavetClosable
Modifier and Type | Field and Description |
---|---|
protected boolean |
converted
It indicates whether the value is converted or not.
|
protected V8Value |
value
The Value.
|
Constructor and Description |
---|
V8VirtualValue(V8Runtime v8Runtime,
IJavetConverter converter,
java.lang.Object object)
Instantiates a new V8 virtual value.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T extends V8Value> |
get()
Get the value.
|
boolean |
isClosed()
Is closed.
|
protected boolean converted
protected V8Value value
public V8VirtualValue(V8Runtime v8Runtime, IJavetConverter converter, java.lang.Object object) throws JavetException
v8Runtime
- the V8 runtimeconverter
- the converterobject
- the objectJavetException
- the javet exceptionpublic void close() throws JavetException
close
in interface IJavetClosable
close
in interface java.lang.AutoCloseable
JavetException
public <T extends V8Value> T get()
T
- the type parameterpublic boolean isClosed()
IJavetClosable
isClosed
in interface IJavetClosable