T
- the type parameterE
- the type parameterpublic class JavetDirectProxyObjectHandler<T extends IJavetDirectProxyHandler<E>,E extends java.lang.Exception> extends BaseJavetDirectProxyHandler<T,E>
IJavetDirectCallable.DirectCall, IJavetDirectCallable.GetterAndNoThis<E extends java.lang.Exception>, IJavetDirectCallable.GetterAndThis<E extends java.lang.Exception>, IJavetDirectCallable.NoThisAndNoResult<E extends java.lang.Exception>, IJavetDirectCallable.NoThisAndResult<E extends java.lang.Exception>, IJavetDirectCallable.SetterAndNoThis<E extends java.lang.Exception>, IJavetDirectCallable.SetterAndThis<E extends java.lang.Exception>, IJavetDirectCallable.ThisAndNoResult<E extends java.lang.Exception>, IJavetDirectCallable.ThisAndResult<E extends java.lang.Exception>
callbackContexts, targetObject, v8Runtime
FUNCTION_NAME_TO_JSON, FUNCTION_NAME_TO_V8_VALUE, PROXY_FUNCTION_NAME_APPLY, PROXY_FUNCTION_NAME_CONSTRUCT, PROXY_FUNCTION_NAME_DELETE_PROPERTY, PROXY_FUNCTION_NAME_GET, PROXY_FUNCTION_NAME_GET_OWN_PROPERTY_DESCRIPTOR, PROXY_FUNCTION_NAME_GET_PROTOTYPE_OF, PROXY_FUNCTION_NAME_HAS, PROXY_FUNCTION_NAME_OWN_KEYS, PROXY_FUNCTION_NAME_SET
Constructor and Description |
---|
JavetDirectProxyObjectHandler(V8Runtime v8Runtime,
T targetObject)
Instantiates a new Base javet direct proxy object handler.
|
Modifier and Type | Method and Description |
---|---|
V8ValueBoolean |
deleteProperty(V8Value target,
V8Value property)
handler.deleteProperty()
The handler.deleteProperty() method is a trap for the [[Delete]] object internal method,
which is used by operations such as the delete operator.
|
V8Value |
get(V8Value target,
V8Value property,
V8Value receiver)
handler.get()
The handler.get() method is a trap for the [[Get]] object internal method,
which is used by operations such as property accessors.
|
JavetCallbackContext[] |
getCallbackContexts()
Get supported callback contexts.
|
V8Value |
getOwnPropertyDescriptor(V8Value target,
V8Value property)
handler.getOwnPropertyDescriptor()
The handler.getOwnPropertyDescriptor() method is a trap for the [[GetOwnProperty]] object internal method,
which is used by operations such as Object.getOwnPropertyDescriptor().
|
V8Value |
getPrototypeOf(V8Value target)
handler.getPrototypeOf()
The handler.getPrototypeOf() method is a trap for the [[GetPrototypeOf]] object internal method,
which is used by operations such as Object.getPrototypeOf().
|
V8ValueBoolean |
has(V8Value target,
V8Value property)
handler.has()
The handler.has() method is a trap for the [[HasProperty]] object internal method,
which is used by operations such as the in operator.
|
V8ValueArray |
ownKeys(V8Value target)
handler.ownKeys()
The handler.ownKeys() method is a trap for the [[OwnPropertyKeys]] object internal method,
which is used by operations such as Object.keys(), Reflect.ownKeys(), etc.
|
V8ValueBoolean |
set(V8Value target,
V8Value propertyKey,
V8Value propertyValue,
V8Value receiver)
handler.set()
The handler.set() method is a trap for the [[Set]] object internal method,
which is used by operations such as using property accessors to set a property's value.
|
getTargetObject, getV8Runtime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, construct, defineProperty, isExtensible, preventExtensions, setPrototypeOf
setV8Runtime
public V8ValueBoolean deleteProperty(V8Value target, V8Value property) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetproperty
- the propertyJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public V8Value get(V8Value target, V8Value property, V8Value receiver) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetproperty
- the propertyreceiver
- the receiverJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public JavetCallbackContext[] getCallbackContexts()
IJavetDirectCallable
public V8Value getOwnPropertyDescriptor(V8Value target, V8Value property) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetproperty
- the propertyJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public V8Value getPrototypeOf(V8Value target) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public V8ValueBoolean has(V8Value target, V8Value property) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetproperty
- the propertyJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public V8ValueArray ownKeys(V8Value target) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
public V8ValueBoolean set(V8Value target, V8Value propertyKey, V8Value propertyValue, V8Value receiver) throws JavetException, E extends java.lang.Exception
IJavetProxyHandler
target
- the targetpropertyKey
- the property keypropertyValue
- the property valuereceiver
- the receiverJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception