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, typeErrorFunctionIsNotSupported
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, isMethodProxyable, isProxyable
protected 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)
IClassProxyPlugin
E
- 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)
IClassProxyPlugin
getProxyGetBySymbol
in interface IClassProxyPlugin
getProxyGetBySymbol
in class BaseJavetProxyPlugin
E
- the type parametertargetClass
- the target classsymbolName
- the symbol namepublic <E extends java.lang.Exception> IClassProxyPluginFunction<E> getTargetObjectConstructor(java.lang.Class<?> targetClass)
IClassProxyPlugin
getTargetObjectConstructor
in interface IClassProxyPlugin
getTargetObjectConstructor
in class BaseJavetProxyPlugin
E
- the type parametertargetClass
- the target classprotected abstract T validateTargetObject(java.lang.Object targetObject)
targetObject
- the target object