public abstract class BaseJavetProxyPluginSingle<T> extends BaseJavetProxyPlugin
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,IClassProxyPluginFunction<?>> |
proxyGetByStringMap
The Proxy get by string map.
|
protected java.util.Map<java.lang.String,IClassProxyPluginFunction<?>> |
proxyGetBySymbolMap
The Proxy get by symbol map.
|
HINT_BOOLEAN, HINT_DEFAULT, HINT_NUMBER, HINT_STRING, OBJECT_CONVERTER, PROXY_CONVERTER, TO_JSON, TO_STRING, VALUE_OF| Constructor and Description |
|---|
BaseJavetProxyPluginSingle()
Instantiates a new Base javet proxy plugin for single class.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract V8Value |
createTargetObject(V8Runtime v8Runtime,
java.lang.Object targetObject)
Create target object.
|
<E extends java.lang.Exception> |
getProxyGetByString(java.lang.Class<?> targetClass,
java.lang.String propertyName)
Gets proxy get function by string property.
|
<E extends java.lang.Exception> |
getProxyGetBySymbol(java.lang.Class<?> targetClass,
java.lang.String symbolName)
Gets proxy get function by symbol property.
|
<E extends java.lang.Exception> |
getTargetObjectConstructor(java.lang.Class<?> targetClass)
Gets target object constructor.
|
protected abstract T |
validateTargetObject(java.lang.Object targetObject)
Validate and return target object.
|
callWithObjectConverter, deleteByObject, getByIndex, getProxyOwnKeys, getProxyOwnPropertyDescriptor, getProxySymbolToPrimitive, hasByObject, isDeleteSupported, isHasSupported, isIndexSupported, isOwnKeysSupported, isUniqueKeySupported, populateUniqueKeys, setByIndex, symbolToPrimitive, typeErrorFunctionIsNotSupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, isMethodProxyable, isProxyableprotected final java.util.Map<java.lang.String,IClassProxyPluginFunction<?>> proxyGetByStringMap
protected final java.util.Map<java.lang.String,IClassProxyPluginFunction<?>> proxyGetBySymbolMap
public BaseJavetProxyPluginSingle()
protected abstract V8Value createTargetObject(V8Runtime v8Runtime, java.lang.Object targetObject) throws JavetException
v8Runtime - the V8 runtimetargetObject - the target objectJavetException - the javet exceptionpublic <E extends java.lang.Exception> IClassProxyPluginFunction<E> getProxyGetByString(java.lang.Class<?> targetClass, java.lang.String propertyName)
IClassProxyPluginE - the type parametertargetClass - the target classpropertyName - the property namepublic <E extends java.lang.Exception> IClassProxyPluginFunction<E> getProxyGetBySymbol(java.lang.Class<?> targetClass, java.lang.String symbolName)
IClassProxyPlugingetProxyGetBySymbol in interface IClassProxyPlugingetProxyGetBySymbol in class BaseJavetProxyPluginE - the type parametertargetClass - the target classsymbolName - the symbol namepublic <E extends java.lang.Exception> IClassProxyPluginFunction<E> getTargetObjectConstructor(java.lang.Class<?> targetClass)
IClassProxyPlugingetTargetObjectConstructor in interface IClassProxyPlugingetTargetObjectConstructor in class BaseJavetProxyPluginE - the type parametertargetClass - the target classprotected abstract T validateTargetObject(java.lang.Object targetObject)
targetObject - the target object