/napi_generator/examples/akitutorials/entry/src/main/cpp/ |
H A D | napi_init.cpp | 129 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 D | FileInfo.java | 51 * @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 D | FileInfo.java | 51 * @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 D | napigetproperty.cpp | 20 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 D | napideleteproperty.cpp | 26 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 D | napisetnamedproperty.cpp | 26 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 D | napisetproperty.cpp | 26 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 D | napiobjectfreeze.cpp | 28 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 D | napiobjectseal.cpp | 28 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 D | napigetnamedproperty.cpp | 20 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 D | napihasproperty.cpp | 26 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 D | napigetpropertynames.cpp | 26 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 D | napihasnamedproperty.cpp | 47 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 D | cjsonprintcase.cpp | 18 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 D | cjsoncommon.cpp | 51 * 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 D | cjsonparsecase.cpp | 476 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 D | napicreatefunction.cpp | 32 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 D | napiunwrap.cpp | 77 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 D | common.cpp | 36 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 D | tool.js | 253 * @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 D | tool.js | 248 * @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 D | javascriptapi.h | 34 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 D | cjsoncommon.h | 59 * obj: 类型是napi_object 62 bool IsEmptyObject(napi_env env, napi_value obj, const char *tag);
|
/napi_generator/src/cli/dts2cpp/src/gen/ |
H A D | analyzeRaw.js | 26 function stringifyWithoutCircular(obj) { 28 return JSON.stringify(obj, (key, value) => {
|
/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/ffmpegcase/render/ |
H A D | plugin_render.cpp | 1030 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()
|