public class JavetProxyConverter extends JavetObjectConverter
Java Primitive types, Array, List, Set and Map are converted to the corresponding types in JS. Set and Map conversion can be disabled via config.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DUMMY_FUNCTION_STRING
The constant DUMMY_FUNCTION_STRING contains a JS code snippet
which creates an empty anonymous function hidden in a closure.
|
customObjectMap, EXECUTABLE_INDEX_DEFAULT_CONSTRUCTOR, EXECUTABLE_INDEX_FROM_MAP, EXECUTABLE_INDEX_TO_MAP, METHOD_NAME_FROM_MAP, METHOD_NAME_TO_MAP, OBJECT_CONVERTER, PRIVATE_PROPERTY_CUSTOM_OBJECT_CLASS_NAME, PRIVATE_PROPERTY_PROXY_TARGET, PROPERTY_NAME, PUBLIC_PROPERTY_CONSTRUCTOR
config
Constructor and Description |
---|
JavetProxyConverter()
Instantiates a new Javet proxy converter.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends V8Value> |
toProxiedV8Value(V8Runtime v8Runtime,
java.lang.Object object)
To proxied V8 value.
|
protected <T extends V8Value> |
toV8Value(V8Runtime v8Runtime,
java.lang.Object object,
int depth)
To V8 value with stack depth.
|
createEntityFunction, createEntityMap, registerCustomObject, registerCustomObject, toObject, unregisterCustomObject
getConfig, setConfig, toObject, toV8Value, validateDepth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toObject
protected static final java.lang.String DUMMY_FUNCTION_STRING
public JavetProxyConverter()
@CheckReturnValue protected <T extends V8Value> T toProxiedV8Value(V8Runtime v8Runtime, java.lang.Object object) throws JavetException
T
- the type parameterv8Runtime
- the V8 runtimeobject
- the objectJavetException
- the javet exception@CheckReturnValue protected <T extends V8Value> T toV8Value(V8Runtime v8Runtime, java.lang.Object object, int depth) throws JavetException
BaseJavetConverter
toV8Value
in class JavetObjectConverter
T
- the type parameterv8Runtime
- the V8 runtimeobject
- the objectdepth
- the stack depthJavetException
- the javet exception