E - the type parameterpublic interface IJavetDirectProxyHandler<E extends java.lang.Exception>
| Modifier and Type | Method and Description |
|---|---|
default V8Value |
createTargetObject()
Create target object for the proxy target.
|
default IClassProxyPlugin |
getProxyPlugin()
Gets proxy plugin.
|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
default V8Value |
proxyApply(V8Value target,
V8Value thisObject,
V8ValueArray arguments)
Proxy handler.apply().
|
default V8ValueBoolean |
proxyDeleteProperty(V8Value target,
V8Value property)
Proxy handler.deleteProperty().
|
default V8Value |
proxyGet(V8Value target,
V8Value property,
V8Value receiver)
Proxy handler.get().
|
default V8Value |
proxyGetOwnPropertyDescriptor(V8Value target,
V8Value property)
Proxy handler.getOwnPropertyDescriptor().
|
default V8Value |
proxyGetPrototypeOf(V8Value target)
Proxy get prototype of.
|
default java.util.Map<java.lang.String,IJavetUniFunction<java.lang.String,? extends V8Value,E>> |
proxyGetStringGetterMap()
Proxy get string getter map.
|
default java.util.Map<java.lang.String,IJavetBiFunction<java.lang.String,V8Value,java.lang.Boolean,E>> |
proxyGetStringSetterMap()
Proxy get string setter map.
|
default java.util.Map<java.lang.String,IJavetUniFunction<V8ValueSymbol,? extends V8Value,E>> |
proxyGetSymbolGetterMap()
Proxy get symbol getter map.
|
default java.util.Map<java.lang.String,IJavetBiFunction<V8ValueSymbol,V8Value,java.lang.Boolean,E>> |
proxyGetSymbolSetterMap()
Proxy get symbol setter map.
|
default V8ValueBoolean |
proxyHas(V8Value target,
V8Value property)
Proxy handler.has().
|
default V8ValueArray |
proxyOwnKeys(V8Value target)
Proxy handler.ownKeys().
|
default V8ValueBoolean |
proxySet(V8Value target,
V8Value propertyKey,
V8Value propertyValue,
V8Value receiver)
Proxy handler.set().
|
default void |
registerStringGetter(java.lang.String propertyName,
IJavetUniFunction<java.lang.String,? extends V8Value,E> getter)
Register string getter.
|
default void |
registerStringGetterFunction(java.lang.String propertyName,
IJavetDirectCallable.NoThisAndResult<?> getter)
Register string getter function.
|
default void |
registerStringSetter(java.lang.String propertyName,
IJavetBiFunction<java.lang.String,V8Value,java.lang.Boolean,E> setter)
Register string setter.
|
default void |
registerSymbolGetterFunction(java.lang.String propertyName,
IJavetDirectCallable.NoThisAndResult<?> getter)
Register symbol getter function.
|
default void |
setV8Runtime(V8Runtime v8Runtime)
Sets V8 runtime.
|
default V8Value |
symbolIterator(V8Value... v8Values)
Symbol iterator.
|
default V8Value |
symbolToPrimitive(V8Value... v8Values)
Symbol toPrimitive.
|
default V8Value |
toJSON(V8Value... v8Values)
To JSON.
|
default V8Value createTargetObject()
default IClassProxyPlugin getProxyPlugin()
V8Runtime getV8Runtime()
default V8Value proxyApply(V8Value target, V8Value thisObject, V8ValueArray arguments) throws JavetException, E extends java.lang.Exception
target - the targetthisObject - this objectarguments - the argumentsJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8ValueBoolean proxyDeleteProperty(V8Value target, V8Value property) throws JavetException, E extends java.lang.Exception
target - the targetproperty - the propertyJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8Value proxyGet(V8Value target, V8Value property, V8Value receiver) throws JavetException, E extends java.lang.Exception
target - the targetproperty - the propertyreceiver - the receiverJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8Value proxyGetOwnPropertyDescriptor(V8Value target, V8Value property) throws JavetException, E extends java.lang.Exception
target - the targetproperty - the propertyJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8Value proxyGetPrototypeOf(V8Value target) throws JavetException, E extends java.lang.Exception
target - the targetJavetException - the javet exceptionE - the eE extends java.lang.Exceptiondefault java.util.Map<java.lang.String,IJavetUniFunction<java.lang.String,? extends V8Value,E>> proxyGetStringGetterMap()
default java.util.Map<java.lang.String,IJavetBiFunction<java.lang.String,V8Value,java.lang.Boolean,E>> proxyGetStringSetterMap()
default java.util.Map<java.lang.String,IJavetUniFunction<V8ValueSymbol,? extends V8Value,E>> proxyGetSymbolGetterMap()
default java.util.Map<java.lang.String,IJavetBiFunction<V8ValueSymbol,V8Value,java.lang.Boolean,E>> proxyGetSymbolSetterMap()
default V8ValueBoolean proxyHas(V8Value target, V8Value property) throws JavetException, E extends java.lang.Exception
target - the targetproperty - the propertyJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8ValueArray proxyOwnKeys(V8Value target) throws JavetException, E extends java.lang.Exception
target - the targetJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8ValueBoolean proxySet(V8Value target, V8Value propertyKey, V8Value propertyValue, V8Value receiver) throws JavetException, E extends java.lang.Exception
target - the targetpropertyKey - the property keypropertyValue - the property valuereceiver - the receiverJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault void registerStringGetter(java.lang.String propertyName,
IJavetUniFunction<java.lang.String,? extends V8Value,E> getter)
propertyName - the property namegetter - the getterdefault void registerStringGetterFunction(java.lang.String propertyName,
IJavetDirectCallable.NoThisAndResult<?> getter)
propertyName - the property namegetter - the getterdefault void registerStringSetter(java.lang.String propertyName,
IJavetBiFunction<java.lang.String,V8Value,java.lang.Boolean,E> setter)
propertyName - the property namesetter - the setterdefault void registerSymbolGetterFunction(java.lang.String propertyName,
IJavetDirectCallable.NoThisAndResult<?> getter)
propertyName - the property namegetter - the getterdefault void setV8Runtime(V8Runtime v8Runtime)
v8Runtime - the V8 runtimedefault V8Value symbolIterator(V8Value... v8Values) throws JavetException, E extends java.lang.Exception
v8Values - the V8 valuesJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8Value symbolToPrimitive(V8Value... v8Values) throws JavetException, E extends java.lang.Exception
v8Values - the V8 valuesJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptiondefault V8Value toJSON(V8Value... v8Values) throws JavetException, E extends java.lang.Exception
v8Values - the V8 valuesJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exception