public final class JavetReflectionProxyFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JavetReflectionProxyFactory |
getInstance()
Gets instance.
|
boolean |
isSupportedFunction(java.lang.Class<?> type,
V8Value v8Value)
Is reflection proxied function conversion supported.
|
boolean |
isSupportedObject(java.lang.Class<?> type,
V8Value v8Value)
Is reflection proxied object conversion supported.
|
java.lang.Object |
toObject(java.lang.Class<?> type,
V8Value v8Value)
Convert from V8 value to a reflection proxied object.
|
public static JavetReflectionProxyFactory getInstance()
public boolean isSupportedFunction(java.lang.Class<?> type, V8Value v8Value)
type
- the type to be convertedv8Value
- the V8 valuepublic boolean isSupportedObject(java.lang.Class<?> type, V8Value v8Value)
type
- the type to be convertedv8Value
- the V8 valuepublic java.lang.Object toObject(java.lang.Class<?> type, V8Value v8Value) throws JavetException
type
- the type to be convertedv8Value
- the V8 valueJavetException
- the javet exception