public interface IJavetConverter
Modifier and Type | Method and Description |
---|---|
JavetConverterConfig<?> |
getConfig()
Gets config.
|
<T> T |
toObject(V8Value v8Value)
To object from V8 value.
|
default <T> T |
toObject(V8Value v8Value,
boolean autoClose)
To object from V8 value and auto close the V8 value.
|
<T extends V8Value> |
toV8Value(V8Runtime v8Runtime,
java.lang.Object object)
To V8 value from object.
|
JavetConverterConfig<?> getConfig()
<T> T toObject(V8Value v8Value) throws JavetException
Don't override this function, instead, override the one with depth as argument for circular structure detection.
T
- the type parameterv8Value
- the V8 valueJavetException
- the javet exceptiondefault <T> T toObject(V8Value v8Value, boolean autoClose) throws JavetException
T
- the type parameterv8Value
- the V8 valueautoClose
- the auto closeJavetException
- the javet exception@CheckReturnValue <T extends V8Value> T toV8Value(V8Runtime v8Runtime, java.lang.Object object) throws JavetException
Don't override this function, instead, override the one with depth as argument for circular structure detection.
T
- the type parameterv8Runtime
- the V8 runtimeobject
- the objectJavetException
- the javet exception