openharmony 鸿蒙 capi-jsvm-jsvm-propertyhandlerconfigurationstruct

2026-08-25 浏览 (1)

JSVM_PropertyHandlerConfigurationStruct

typedef struct {...} JSVM_PropertyHandlerConfigurationStruct

Overview

Defines a struct for triggering the corresponding callback when the getter, setter, deleter, or enumerator of an object is executed.

Since: 12

Related module: JSVM

Header file: jsvm_types.h

Summary

Member Variables

NameDescription
JSVM_Value namedPropertyDataData used for name property callback.
JSVM_Value indexedPropertyDataData used for index property callback.

Member Functions

NameDescription
JSVM_Value (JSVM_CDECL* genericNamedPropertyGetterCallback)(JSVM_Env env,JSVM_Value name,JSVM_Value thisArg,JSVM_Value namedPropertyData)Callback triggered by obtaining the name property of an instance object.
JSVM_Value (JSVM_CDECL* genericNamedPropertySetterCallback)(JSVM_Env env,JSVM_Value name,JSVM_Value property,JSVM_Value thisArg,JSVM_Value namedPropertyData)Callback triggered by setting the name property of an instance object.
JSVM_Value (JSVM_CDECL* genericNamedPropertyDeleterCallback)(JSVM_Env env,JSVM_Value name,JSVM_Value thisArg,JSVM_Value namedPropertyData)Callback triggered by deleting the name property of an instance object.
JSVM_Value (JSVM_CDECL* genericNamedPropertyEnumeratorCallback)(JSVM_Env env,JSVM_Value thisArg,JSVM_Value namedPropertyData)Callback triggered by obtaining all name properties of an object.
JSVM_Value (JSVM_CDECL* genericIndexedPropertyGetterCallback)(JSVM_Env env,JSVM_Value index,JSVM_Value thisArg,JSVM_Value indexedPropertyData)Callback triggered by obtaining the index property of an instance object.
JSVM_Value (JSVM_CDECL* genericIndexedPropertySetterCallback)(JSVM_Env env,JSVM_Value index,JSVM_Value property,JSVM_Value thisArg,JSVM_Value indexedPropertyData)Callback triggered by setting the index property of an instance object.
JSVM_Value (JSVM_CDECL* genericIndexedPropertyDeleterCallback)(JSVM_Env env,JSVM_Value index,JSVM_Value thisArg,JSVM_Value indexedPropertyData)Callback triggered by deleting the index property of an instance object.
JSVM_Value (JSVM_CDECL* genericIndexedPropertyEnumeratorCallback)(JSVM_Env env,JSVM_Value thisArg,JSVM_Value indexedPropertyData)Callback triggered by obtaining all index properties of an object.

Member Function Description

genericNamedPropertyGetterCallback()

JSVM_Value (JSVM_CDECL* genericNamedPropertyGetterCallback)(JSVM_Env env,JSVM_Value name,JSVM_Value thisArg,JSVM_Value namedPropertyData)

Description

Callback triggered by obtaining the name property of an instance object.

genericNamedPropertySetterCallback()

JSVM_Value (JSVM_CDECL* genericNamedPropertySetterCallback)(JSVM_Env env,JSVM_Value name,JSVM_Value property,JSVM_Value thisArg,JSVM_Value namedPropertyData)

Description

Callback triggered by setting the name property of an instance object.

genericNamedPropertyDeleterCallback()

JSVM_Value (JSVM_CDECL* genericNamedPropertyDeleterCallback)(JSVM_Env env,JSVM_Value name,JSVM_Value thisArg,JSVM_Value namedPropertyData)

Description

Callback triggered by deleting the name property of an instance object.

genericNamedPropertyEnumeratorCallback()

JSVM_Value (JSVM_CDECL* genericNamedPropertyEnumeratorCallback)(JSVM_Env env,JSVM_Value thisArg,JSVM_Value namedPropertyData)

Description

Callback triggered by obtaining all name properties on an object.

genericIndexedPropertyGetterCallback()

JSVM_Value (JSVM_CDECL* genericIndexedPropertyGetterCallback)(JSVM_Env env,JSVM_Value index,JSVM_Value thisArg,JSVM_Value indexedPropertyData)

Description

Callback triggered by obtaining the index property of an instance object.

genericIndexedPropertySetterCallback()

JSVM_Value (JSVM_CDECL* genericIndexedPropertySetterCallback)(JSVM_Env env,JSVM_Value index,JSVM_Value property,JSVM_Value thisArg,JSVM_Value indexedPropertyData)

Description

Callback triggered by setting the index property of an instance object.

genericIndexedPropertyDeleterCallback()

JSVM_Value (JSVM_CDECL* genericIndexedPropertyDeleterCallback)(JSVM_Env env,JSVM_Value index,JSVM_Value thisArg,JSVM_Value indexedPropertyData)

Description

Callback triggered by deleting the index property of an instance object.

genericIndexedPropertyEnumeratorCallback()

JSVM_Value (JSVM_CDECL* genericIndexedPropertyEnumeratorCallback)(JSVM_Env env,JSVM_Value thisArg,JSVM_Value indexedPropertyData)

Description

Callback triggered by obtaining all index properties on an object.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-jsvm-jsvm-vminfo

openharmony 鸿蒙 capi-memory

openharmony 鸿蒙 js-apis-syscap

openharmony 鸿蒙 capi-memory-purgmem

openharmony 鸿蒙 capi-jsvm-jsvm-callbackstruct8h

openharmony 鸿蒙 capi-jsvm-jsvm-propertydescriptor

openharmony 鸿蒙 js-apis-common-load-native-module

openharmony 鸿蒙 capi-jsvm-jsvm-cpuprofiler--8h

openharmony 鸿蒙 capi-jsvm-jsvm-codecache

openharmony 鸿蒙 capi-jsvm-jsvm-data--8h

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/UbVaa2SU