T
- the type parameterE
- the type parameterpublic interface IJavetProxyHandler<T,E extends java.lang.Exception>
Please refer to this doc for more details.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FUNCTION_NAME_TO_JSON
The constant FUNCTION_NAME_TO_JSON.
|
static java.lang.String |
FUNCTION_NAME_TO_V8_VALUE
The constant FUNCTION_NAME_TO_V8_VALUE.
|
static java.lang.String |
PROXY_FUNCTION_NAME_APPLY
The constant PROXY_FUNCTION_NAME_APPLY.
|
static java.lang.String |
PROXY_FUNCTION_NAME_CONSTRUCT
The constant PROXY_FUNCTION_NAME_CONSTRUCT.
|
static java.lang.String |
PROXY_FUNCTION_NAME_DELETE_PROPERTY
The constant PROXY_FUNCTION_NAME_DELETE_PROPERTY.
|
static java.lang.String |
PROXY_FUNCTION_NAME_GET
The constant PROXY_FUNCTION_NAME_GET.
|
static java.lang.String |
PROXY_FUNCTION_NAME_GET_OWN_PROPERTY_DESCRIPTOR
The constant PROXY_FUNCTION_NAME_GET_OWN_PROPERTY_DESCRIPTOR.
|
static java.lang.String |
PROXY_FUNCTION_NAME_GET_PROTOTYPE_OF
The constant PROXY_FUNCTION_NAME_GET_PROTOTYPE_OF.
|
static java.lang.String |
PROXY_FUNCTION_NAME_HAS
The constant PROXY_FUNCTION_NAME_HAS.
|
static java.lang.String |
PROXY_FUNCTION_NAME_OWN_KEYS
The constant PROXY_FUNCTION_NAME_OWN_KEYS.
|
static java.lang.String |
PROXY_FUNCTION_NAME_SET
The constant PROXY_FUNCTION_NAME_SET.
|
Modifier and Type | Method and Description |
---|---|
default V8Value |
apply(V8Value target,
V8Value thisObject,
V8ValueArray arguments)
handler.apply()
The handler.apply() method is a trap for the [[Call]] object internal method,
which is used by operations such as function calls.
|
default V8Value |
construct(V8Value target,
V8ValueArray arguments,
V8Value newTarget)
handler.construct()
The handler.construct() method is a trap for the [[Construct]] object internal method,
which is used by operations such as the new operator.
|
default V8ValueBoolean |
defineProperty(V8Value target,
V8Value property,
V8ValueObject descriptor)
handler.defineProperty()
The handler.defineProperty() method is a trap for the [[DefineOwnProperty]] object internal method,
which is used by operations such as Object.defineProperty().
|
default 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.
|
default 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.
|
default 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().
|
default 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().
|
T |
getTargetObject()
Gets target object.
|
V8Runtime |
getV8Runtime()
Gets V8 runtime.
|
default 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.
|
default V8ValueBoolean |
isExtensible(V8Value target)
handler.isExtensible()
The handler.isExtensible() method is a trap for the [[IsExtensible]] object internal method,
which is used by operations such as Object.isExtensible().
|
default 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.
|
default V8ValueBoolean |
preventExtensions(V8Value target)
handler.preventExtensions()
The handler.preventExtensions() method is a trap for the [[PreventExtensions]] object internal method,
which is used by operations such as Object.preventExtensions().
|
default 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.
|
default V8ValueBoolean |
setPrototypeOf(V8Value target,
V8Value prototype)
handler.setPrototypeOf()
The handler.setPrototypeOf() method is a trap for the [[SetPrototypeOf]] object internal method,
which is used by operations such as Object.setPrototypeOf().
|
static final java.lang.String FUNCTION_NAME_TO_JSON
static final java.lang.String FUNCTION_NAME_TO_V8_VALUE
static final java.lang.String PROXY_FUNCTION_NAME_APPLY
static final java.lang.String PROXY_FUNCTION_NAME_CONSTRUCT
static final java.lang.String PROXY_FUNCTION_NAME_DELETE_PROPERTY
static final java.lang.String PROXY_FUNCTION_NAME_GET
static final java.lang.String PROXY_FUNCTION_NAME_GET_OWN_PROPERTY_DESCRIPTOR
static final java.lang.String PROXY_FUNCTION_NAME_GET_PROTOTYPE_OF
static final java.lang.String PROXY_FUNCTION_NAME_HAS
static final java.lang.String PROXY_FUNCTION_NAME_OWN_KEYS
static final java.lang.String PROXY_FUNCTION_NAME_SET
default V8Value apply(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.Exception
default V8Value construct(V8Value target, V8ValueArray arguments, V8Value newTarget) throws JavetException, E extends java.lang.Exception
target
- the targetarguments
- the argumentsnewTarget
- the new targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
default V8ValueBoolean defineProperty(V8Value target, V8Value property, V8ValueObject descriptor) throws JavetException, E extends java.lang.Exception
target
- the targetproperty
- the propertydescriptor
- the descriptorJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
default V8ValueBoolean deleteProperty(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.Exception
default V8Value get(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.Exception
default V8Value getOwnPropertyDescriptor(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.Exception
default V8Value getPrototypeOf(V8Value target) throws JavetException, E extends java.lang.Exception
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
T getTargetObject()
V8Runtime getV8Runtime()
default V8ValueBoolean has(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.Exception
default V8ValueBoolean isExtensible(V8Value target) throws JavetException, E extends java.lang.Exception
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
default V8ValueArray ownKeys(V8Value target) throws JavetException, E extends java.lang.Exception
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
default V8ValueBoolean preventExtensions(V8Value target) throws JavetException, E extends java.lang.Exception
target
- the targetJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception
default V8ValueBoolean set(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.Exception
default V8ValueBoolean setPrototypeOf(V8Value target, V8Value prototype) throws JavetException, E extends java.lang.Exception
target
- the targetprototype
- the prototypeJavetException
- the javet exceptionE
- the custom exceptionE extends java.lang.Exception