harmony 鸿蒙JSVM_PropertyDescriptor

2025-06-12 浏览 (1)

JSVM_PropertyDescriptor

Overview

Property descriptor.

Since: 11

Related module: JSVM

Summary

Member Variables

NameDescription
const char * utf8nameProperty key value, which is an optional character string in UTF8 encoding. Either utf8name or name must be provided for a property.
JSVM_Value nameOptional JSVM_Value, which points to the JavaScript string or symbol used as the property key. Either utf8name or name must be provided for a property.
JSVM_Callback methodMethod as the value property of the property descriptor object.
JSVM_Callback getterCallback for getting a property.
JSVM_Callback setterCallback for setting a property.
JSVM_Value valueValue retrieved by getter of the data property.
JSVM_PropertyAttributes attributesAttributes associated with a specific property.

Member Variable Description

attributes

JSVM_PropertyAttributes JSVM_PropertyDescriptor::attributes

Description Attributes associated with a specific property.

getter

JSVM_Callback JSVM_PropertyDescriptor::getter

Description Callback for getting a property.

method

JSVM_Callback JSVM_PropertyDescriptor::method

Description Method as the value property of the property descriptor object.

name

JSVM_Value JSVM_PropertyDescriptor::name

Description Optional JSVM_Value, which points to the JavaScript string or symbol used as the property key. Either utf8name or name must be provided for a property.

setter

JSVM_Callback JSVM_PropertyDescriptor::setter

Description Callback for setting a property.

utf8name

const char* JSVM_PropertyDescriptor::utf8name

Description Property key value, which is an optional character string in UTF8 encoding. Either utf8name or name must be provided for a property.

value

JSVM_Value JSVM_PropertyDescriptor::value

Description Value retrieved by getter of the data property.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Common Capabilities

harmony 鸿蒙_j_s_v_m

harmony 鸿蒙JSVM_CallbackStruct

harmony 鸿蒙JSVM_CreateVMOptions

harmony 鸿蒙JSVM_ExtendedErrorInfo

harmony 鸿蒙JSVM_HeapStatistics

harmony 鸿蒙JSVM_InitOptions

harmony 鸿蒙JSVM_PropertyHandlerConfigurationStruct

harmony 鸿蒙JSVM_ScriptOrigin

harmony 鸿蒙JSVM_TypeTag

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