Home
last modified time | relevance | path

Searched refs:obj (Results 1 - 25 of 25) sorted by relevance

/napi_generator/examples/akitutorials/entry/src/main/cpp/
H A Dnapi_init.cpp129 std::string GetFromGlobal(aki::Value obj) in GetFromGlobal() argument
132 aki::Value strObj = jsonObj["stringify"](obj); in GetFromGlobal()
136 std::string ConvertToString(aki::Value obj) in ConvertToString() argument
138 if (obj.IsNull()) { in ConvertToString()
140 } else if (obj.IsArray()) { in ConvertToString()
141 obj.CallMethod("push", "from C++"); in ConvertToString()
142 aki::Value val1 = obj[0]; in ConvertToString()
143 aki::Value strObj = aki::Value::FromGlobal("JSON")["stringify"](obj); in ConvertToString()
145 } else if (obj.IsBool()) { in ConvertToString()
146 return obj in ConvertToString()
[all...]
/napi_generator/src/intellij_plugin/dts2cpp/napi_IntelliJ_plugin/src/com/sk/utils/
H A DFileInfo.java51 * @param obj 待比较的文件对象
55 public boolean equals(Object obj) { in equals() argument
56 if (this == obj) { in equals()
59 if (obj == null || getClass() != obj.getClass()) { in equals()
62 FileInfo fileInfo = (FileInfo) obj; in equals()
/napi_generator/src/tool/api/api_scan_IntelliJ_plugin/src/com/kh/scan/utils/
H A DFileInfo.java51 * @param obj 待比较的文件对象
55 public boolean equals(Object obj) { in equals() argument
56 if (this == obj) { in equals()
59 if (obj == null || getClass() != obj.getClass()) { in equals()
62 FileInfo fileInfo = (FileInfo) obj; in equals()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsproperty/
H A Dnapigetproperty.cpp20 napi_value callFunctionIfTypeIsFunction(napi_env &env, napi_value &obj, napi_value &propValue) in callFunctionIfTypeIsFunction() argument
35 status = napi_call_function(env, obj, propValue, 0, NULL, &result); in callFunctionIfTypeIsFunction()
53 napi_value obj; in testNapiGetProperty() local
69 obj = argv[PARAM0]; in testNapiGetProperty()
75 status = napi_typeof(env, obj, &valuetype0); in testNapiGetProperty()
77 getErrMsg(status, env, extended_error_info, "get obj type", TAG); in testNapiGetProperty()
87 status = napi_get_property(env, obj, propName, &propValue); in testNapiGetProperty()
94 napi_value result = callFunctionIfTypeIsFunction(env, obj, propValue); in testNapiGetProperty()
H A Dnapideleteproperty.cpp26 napi_value obj; in testNapiDeleteProperty() local
42 obj = argv[PARAM0]; in testNapiDeleteProperty()
48 status = napi_typeof(env, obj, &valuetype0); in testNapiDeleteProperty()
50 getErrMsg(status, env, extended_error_info, "get obj type", TAG); in testNapiDeleteProperty()
60 status = napi_delete_property(env, obj, propName, &result); in testNapiDeleteProperty()
74 return obj; in testNapiDeleteProperty()
H A Dnapisetnamedproperty.cpp26 napi_value obj; in testNapiSetNamedProperty() local
39 obj = argv[PARAM0]; in testNapiSetNamedProperty()
43 bool resValid = validateObjectProperty(env, obj, propName, TAG); in testNapiSetNamedProperty()
62 status = napi_set_named_property(env, obj, propertyName, propValue); in testNapiSetNamedProperty()
69 return obj; // 返回新设置对象 in testNapiSetNamedProperty()
H A Dnapisetproperty.cpp26 napi_value obj; in testNapiSetProperty() local
43 obj = argv[PARAM0]; in testNapiSetProperty()
50 status = napi_typeof(env, obj, &valuetype0); in testNapiSetProperty()
52 getErrMsg(status, env, extended_error_info, "get obj type", TAG); in testNapiSetProperty()
61 status = napi_set_property(env, obj, propName, propValue); in testNapiSetProperty()
68 return obj; in testNapiSetProperty()
H A Dnapiobjectfreeze.cpp28 napi_value obj; in testNapiObjectFreeze() local
52 obj = argv[PARAM0]; in testNapiObjectFreeze()
53 status = napi_object_freeze(env, obj); in testNapiObjectFreeze()
59 return obj; in testNapiObjectFreeze()
H A Dnapiobjectseal.cpp28 napi_value obj; in testNapiObjectSeal() local
52 obj = argv[PARAM0]; in testNapiObjectSeal()
53 status = napi_object_seal(env, obj); in testNapiObjectSeal()
58 return obj; in testNapiObjectSeal()
H A Dnapigetnamedproperty.cpp20 napi_value callFunctionIfPropertyTypeIsFunction(napi_env &env, napi_value &obj, napi_value &propValue) in callFunctionIfPropertyTypeIsFunction() argument
35 status = napi_call_function(env, obj, propValue, 0, NULL, &result); in callFunctionIfPropertyTypeIsFunction()
53 napi_value obj; in testNapiGetNamedProperty() local
65 obj = argv[PARAM0]; in testNapiGetNamedProperty()
68 bool resValid = validateObjectProperty(env, obj, propName, TAG); in testNapiGetNamedProperty()
86 status = napi_get_named_property(env, obj, propertyName, &propValue); // 读取属性 in testNapiGetNamedProperty()
94 napi_value result = callFunctionIfPropertyTypeIsFunction(env, obj, propValue); in testNapiGetNamedProperty()
H A Dnapihasproperty.cpp26 napi_value obj; in testNapiHasProperty() local
42 obj = argv[PARAM0]; in testNapiHasProperty()
48 status = napi_typeof(env, obj, &valuetype0); in testNapiHasProperty()
50 getErrMsg(status, env, extended_error_info, "get obj type", TAG); in testNapiHasProperty()
60 status = napi_has_property(env, obj, propName, &hasProperty); in testNapiHasProperty()
H A Dnapigetpropertynames.cpp26 napi_value obj; in testNapiGetPropertyNames() local
42 obj = argv[PARAM0]; in testNapiGetPropertyNames()
44 status = napi_get_property_names(env, obj, &propertyNames); in testNapiGetPropertyNames()
H A Dnapihasnamedproperty.cpp47 napi_value obj; in testNapiHasNamedProperty() local
61 obj = argv[PARAM0]; in testNapiHasNamedProperty()
64 bool resValid = validateObjectProperty(env, obj, propName, TAG); in testNapiHasNamedProperty()
72 status = napi_has_named_property(env, obj, propertyName, &hasProperty); in testNapiHasNamedProperty()
/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/cjsoncase/
H A Dcjsonprintcase.cpp18 char *getCjsonPrintRes(napi_env env, napi_value obj) in getCjsonPrintRes() argument
23 jsonObject = initCJSON_Object(env, obj, jsonObject, tag); in getCjsonPrintRes()
39 jsonArray = initCJSON_Array(env, obj, jsonArray, tag, false); in getCjsonPrintRes()
53 jsonArrayObj = initCJSON_ArrayObj(env, obj, jsonArrayObj, tag, true); in getCjsonPrintRes()
62 bool isArrayObject = isArrObject(env, obj, tag); in getCjsonPrintRes()
H A Dcjsoncommon.cpp51 * obj: 类型是napi_object
54 bool IsEmptyObject(napi_env env, napi_value obj, const char *tag) in IsEmptyObject() argument
61 status = napi_typeof(env, obj, &valuetype); in IsEmptyObject()
63 getErrMessage(status, env, extended_error_info, "IsEmptyObject: napi_typeof obj", tag); in IsEmptyObject()
70 status = napi_get_property_names(env, obj, &propertyNames); in IsEmptyObject()
72 getErrMessage(status, env, extended_error_info, "IsEmptyObject: napi_get_property_names obj", tag); in IsEmptyObject()
153 // 获取valuedouble 并加入obj in getNapiCjsonValuedouble()
173 // 获取cjson bool 并加入obj in getNapiCjsonType()
H A Dcjsonparsecase.cpp476 napi_value obj = args[0]; in KH418_CJSON_Parse() local
477 char *valueIn = getCjsonparseInfo(env, obj); in KH418_CJSON_Parse()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsfunctions/
H A Dnapicreatefunction.cpp32 napi_value obj; in testNapiCreateFunction() local
35 status = napi_create_object(env, &obj); in testNapiCreateFunction()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsobjectwrap/
H A Dnapiunwrap.cpp77 MyNode *obj; in testNapiUnwrap() local
78 status = napi_unwrap(env, thisObj, reinterpret_cast<void **>(&obj)); in testNapiUnwrap()
83 napi_value resultStrValue = obj->GetResult(env); in testNapiUnwrap()
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/
H A Dcommon.cpp36 bool validateObjectProperty(napi_env &env, napi_value &obj, napi_value &propName, const char *tag) in validateObjectProperty() argument
44 status = napi_typeof(env, obj, &valuetype0); in validateObjectProperty()
46 getErrMsg(status, env, extended_error_info, "get obj type", tag); in validateObjectProperty()
67 bool validateArrayObjProperty(napi_env &env, napi_value &obj, napi_value &propName, const char *tag) in validateArrayObjProperty() argument
75 status = napi_typeof(env, obj, &valuetype0); in validateArrayObjProperty()
77 getErrMsg(status, env, extended_error_info, "get obj type", tag); in validateArrayObjProperty()
/napi_generator/src/cli/dts2cpp/src/gen/tools/
H A Dtool.js253 * @param obj 待插入的方法对象
257 function addUniqFunc2List(obj, list) {
259 if (isSameFunc(obj, list[i])) {
263 list.push(obj);
284 * @param obj 待插入的对象
288 function addUniqObj2List(obj, list) {
290 if (list[i].name === obj.name) {
294 list.push(obj);
/napi_generator/src/cli/dts2ets/appCodeGen/src/tools/
H A Dtool.js248 * @param obj 待插入的方法对象
252 function addUniqFunc2List(obj, list) {
254 if (isSameFunc(obj, list[i])) {
258 list.push(obj);
279 * @param obj 待插入的对象
283 function addUniqObj2List(obj, list) {
285 if (list[i].name === obj.name) {
289 list.push(obj);
/napi_generator/examples/napitutorials/entry/src/main/cpp/include/
H A Djavascriptapi.h34 bool validateObjectProperty(napi_env &env, napi_value &obj, napi_value &propName, const char *tag);
38 bool validateArrayObjProperty(napi_env &env, napi_value &obj, napi_value &propName, const char *tag);
/napi_generator/examples/napitutorials/entry/src/main/cpp/include/cJsonNapiH/
H A Dcjsoncommon.h59 * obj: 类型是napi_object
62 bool IsEmptyObject(napi_env env, napi_value obj, const char *tag);
/napi_generator/src/cli/dts2cpp/src/gen/
H A DanalyzeRaw.js26 function stringifyWithoutCircular(obj) {
28 return JSON.stringify(obj, (key, value) => {
/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/ffmpegcase/render/
H A Dplugin_render.cpp1030 napi_value obj; in TestGetXComponentStatus() local
1031 ret = napi_create_object(env, &obj); in TestGetXComponentStatus()
1036 ret = napi_set_named_property(env, obj, "hasDraw", hasDraw); in TestGetXComponentStatus()
1042 ret = napi_set_named_property(env, obj, "hasChangeColor", hasChangeColor); in TestGetXComponentStatus()
1048 return obj; in TestGetXComponentStatus()

Completed in 10 milliseconds