T - the type parameterE - the type parameterpublic class JavetReflectionProxyFunctionHandler<T,E extends java.lang.Exception> extends JavetReflectionProxyObjectHandler<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>| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
METHOD_NAME_APPLY
The constant METHOD_NAME_APPLY.
|
classDescriptor, GETTER_PREFIX_ARRAY, PATTERN_CAPITALIZED_PREFIX, SETTER_PREFIX_ARRAYcallbackContexts, targetObject, v8RuntimeFUNCTION_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 |
|---|
JavetReflectionProxyFunctionHandler(V8Runtime v8Runtime,
T targetObject)
Instantiates a new Javet reflection proxy function handler.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
JavetCallbackContext[] |
getCallbackContexts()
Get supported callback contexts.
|
V8ProxyMode |
getProxyMode()
Gets proxy mode.
|
deleteFromCollection, deleteProperty, getByIndex, getByPolyfill, has, hasFromCollection, initialize, initializeCollection, initializeFieldsAndMethods, internalGet, ownKeys, set, setByIndexaddMethod, execute, get, getByField, getByGetter, getByMethod, getGetterPrefixLength, getOwnPropertyDescriptor, getPrototypeOf, getSetterPrefixLength, hasFromGeneric, hasFromRegular, initializeConstructors, initializePublicFields, initializePublicMethods, isAllowed, isApplyFunction, isGenericGetter, isGenericSetter, setToField, setToSettergetTargetObject, getV8Runtimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconstruct, defineProperty, isExtensible, preventExtensions, setPrototypeOfsetV8Runtimeprotected static final java.lang.String METHOD_NAME_APPLY
public V8Value apply(V8Value target, V8Value thisObject, V8ValueArray arguments) throws JavetException, E extends java.lang.Exception
IJavetProxyHandlertarget - the targetthisObject - this objectarguments - the argumentsJavetException - the javet exceptionE - the custom exceptionE extends java.lang.Exceptionpublic JavetCallbackContext[] getCallbackContexts()
IJavetDirectCallablegetCallbackContexts in interface IJavetDirectCallablegetCallbackContexts in class JavetReflectionProxyObjectHandler<T,E extends java.lang.Exception>public V8ProxyMode getProxyMode()
BaseJavetReflectionProxyHandlergetProxyMode in class JavetReflectionProxyObjectHandler<T,E extends java.lang.Exception>