@abaplint/transpiler-cli 2.3.111 → 2.3.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (651) hide show
  1. package/build/bundle.js +74695 -1519
  2. package/output/#ui2#cl_json.clas.locals.mjs +207 -0
  3. package/output/#ui2#cl_json.clas.locals.mjs.map +10 -0
  4. package/output/#ui2#cl_json.clas.mjs +160 -0
  5. package/output/#ui2#cl_json.clas.mjs.map +10 -0
  6. package/output/_init.mjs +8964 -0
  7. package/output/_top.mjs +2 -0
  8. package/output/_unit_open.mjs +25 -0
  9. package/output/abap_boolean.dtel.mjs +6 -0
  10. package/output/abap_callstack.ttyp.mjs +4 -0
  11. package/output/abap_callstack_line.tabl.mjs +5 -0
  12. package/output/abap_encod.dtel.mjs +6 -0
  13. package/output/balmnr.dtel.mjs +6 -0
  14. package/output/balognr.dtel.mjs +6 -0
  15. package/output/bapi_fld.dtel.mjs +6 -0
  16. package/output/bapi_line.dtel.mjs +6 -0
  17. package/output/bapi_msg.dtel.mjs +6 -0
  18. package/output/bapi_mtype.dtel.mjs +6 -0
  19. package/output/bapi_param.dtel.mjs +6 -0
  20. package/output/bapi_rcode.dtel.mjs +6 -0
  21. package/output/bapilogsys.dtel.mjs +6 -0
  22. package/output/bapioption.dtel.mjs +6 -0
  23. package/output/bapiret2.tabl.mjs +5 -0
  24. package/output/bapireturn.tabl.mjs +5 -0
  25. package/output/bapisign.dtel.mjs +6 -0
  26. package/output/boolean.dtel.mjs +6 -0
  27. package/output/char1.dtel.mjs +6 -0
  28. package/output/char10.dtel.mjs +6 -0
  29. package/output/char15.dtel.mjs +6 -0
  30. package/output/char25.dtel.mjs +6 -0
  31. package/output/char32.dtel.mjs +6 -0
  32. package/output/char4.dtel.mjs +6 -0
  33. package/output/cl_abap_char_utilities.clas.mjs +72 -0
  34. package/output/cl_abap_char_utilities.clas.mjs.map +10 -0
  35. package/output/cl_abap_classdescr.clas.mjs +31 -0
  36. package/output/cl_abap_classdescr.clas.mjs.map +10 -0
  37. package/output/cl_abap_codepage.clas.mjs +54 -0
  38. package/output/cl_abap_codepage.clas.mjs.map +10 -0
  39. package/output/cl_abap_complexdescr.clas.mjs +16 -0
  40. package/output/cl_abap_complexdescr.clas.mjs.map +10 -0
  41. package/output/cl_abap_conv_codepage.clas.locals.mjs +42 -0
  42. package/output/cl_abap_conv_codepage.clas.locals.mjs.map +10 -0
  43. package/output/cl_abap_conv_codepage.clas.mjs +31 -0
  44. package/output/cl_abap_conv_codepage.clas.mjs.map +10 -0
  45. package/output/cl_abap_conv_in_ce.clas.mjs +118 -0
  46. package/output/cl_abap_conv_in_ce.clas.mjs.map +10 -0
  47. package/output/cl_abap_conv_out_ce.clas.mjs +82 -0
  48. package/output/cl_abap_conv_out_ce.clas.mjs.map +10 -0
  49. package/output/cl_abap_datadescr.clas.mjs +35 -0
  50. package/output/cl_abap_datadescr.clas.mjs.map +10 -0
  51. package/output/cl_abap_elemdescr.clas.mjs +148 -0
  52. package/output/cl_abap_elemdescr.clas.mjs.map +10 -0
  53. package/output/cl_abap_enumdescr.clas.mjs +19 -0
  54. package/output/cl_abap_enumdescr.clas.mjs.map +10 -0
  55. package/output/cl_abap_exceptional_values.clas.mjs +65 -0
  56. package/output/cl_abap_exceptional_values.clas.mjs.map +10 -0
  57. package/output/cl_abap_format.clas.mjs +26 -0
  58. package/output/cl_abap_format.clas.mjs.map +10 -0
  59. package/output/cl_abap_gzip.clas.mjs +87 -0
  60. package/output/cl_abap_gzip.clas.mjs.map +10 -0
  61. package/output/cl_abap_hmac.clas.mjs +64 -0
  62. package/output/cl_abap_hmac.clas.mjs.map +10 -0
  63. package/output/cl_abap_intfdescr.clas.mjs +16 -0
  64. package/output/cl_abap_intfdescr.clas.mjs.map +10 -0
  65. package/output/cl_abap_matcher.clas.mjs +76 -0
  66. package/output/cl_abap_matcher.clas.mjs.map +10 -0
  67. package/output/cl_abap_math.clas.mjs +41 -0
  68. package/output/cl_abap_math.clas.mjs.map +10 -0
  69. package/output/cl_abap_objectdescr.clas.mjs +76 -0
  70. package/output/cl_abap_objectdescr.clas.mjs.map +10 -0
  71. package/output/cl_abap_random.clas.mjs +52 -0
  72. package/output/cl_abap_random.clas.mjs.map +10 -0
  73. package/output/cl_abap_random_int.clas.mjs +35 -0
  74. package/output/cl_abap_random_int.clas.mjs.map +10 -0
  75. package/output/cl_abap_refdescr.clas.mjs +35 -0
  76. package/output/cl_abap_refdescr.clas.mjs.map +10 -0
  77. package/output/cl_abap_regex.clas.mjs +43 -0
  78. package/output/cl_abap_regex.clas.mjs.map +10 -0
  79. package/output/cl_abap_structdescr.clas.mjs +180 -0
  80. package/output/cl_abap_structdescr.clas.mjs.map +10 -0
  81. package/output/cl_abap_tabledescr.clas.mjs +152 -0
  82. package/output/cl_abap_tabledescr.clas.mjs.map +10 -0
  83. package/output/cl_abap_tstmp.clas.mjs +99 -0
  84. package/output/cl_abap_tstmp.clas.mjs.map +10 -0
  85. package/output/cl_abap_typedescr.clas.mjs +368 -0
  86. package/output/cl_abap_typedescr.clas.mjs.map +10 -0
  87. package/output/cl_abap_unit_assert.clas.locals.mjs +57 -0
  88. package/output/cl_abap_unit_assert.clas.locals.mjs.map +10 -0
  89. package/output/cl_abap_unit_assert.clas.mjs +323 -0
  90. package/output/cl_abap_unit_assert.clas.mjs.map +10 -0
  91. package/output/cl_abap_zip.clas.locals.mjs +115 -0
  92. package/output/cl_abap_zip.clas.locals.mjs.map +10 -0
  93. package/output/cl_abap_zip.clas.mjs +95 -0
  94. package/output/cl_abap_zip.clas.mjs.map +10 -0
  95. package/output/cl_apc_tcp_client_manager.clas.locals.mjs +86 -0
  96. package/output/cl_apc_tcp_client_manager.clas.locals.mjs.map +10 -0
  97. package/output/cl_apc_tcp_client_manager.clas.mjs +31 -0
  98. package/output/cl_apc_tcp_client_manager.clas.mjs.map +10 -0
  99. package/output/cl_apc_wsp_ext_stateless_base.clas.mjs +30 -0
  100. package/output/cl_apc_wsp_ext_stateless_base.clas.mjs.map +10 -0
  101. package/output/cl_bcs.clas.mjs +63 -0
  102. package/output/cl_bcs.clas.mjs.map +10 -0
  103. package/output/cl_bcs_convert.clas.mjs +34 -0
  104. package/output/cl_bcs_convert.clas.mjs.map +10 -0
  105. package/output/cl_cam_address_bcs.clas.mjs +28 -0
  106. package/output/cl_cam_address_bcs.clas.mjs.map +10 -0
  107. package/output/cl_demo_output.clas.mjs +40 -0
  108. package/output/cl_demo_output.clas.mjs.map +10 -0
  109. package/output/cl_document_bcs.clas.mjs +45 -0
  110. package/output/cl_document_bcs.clas.mjs.map +10 -0
  111. package/output/cl_gdt_conversion.clas.mjs +122 -0
  112. package/output/cl_gdt_conversion.clas.mjs.map +10 -0
  113. package/output/cl_gui_cfw.clas.mjs +32 -0
  114. package/output/cl_gui_cfw.clas.mjs.map +10 -0
  115. package/output/cl_gui_container.clas.mjs +22 -0
  116. package/output/cl_gui_container.clas.mjs.map +10 -0
  117. package/output/cl_gui_frontend_services.clas.mjs +273 -0
  118. package/output/cl_gui_frontend_services.clas.mjs.map +10 -0
  119. package/output/cl_http_client.clas.mjs +164 -0
  120. package/output/cl_http_client.clas.mjs.map +10 -0
  121. package/output/cl_http_entity.clas.mjs +493 -0
  122. package/output/cl_http_entity.clas.mjs.map +10 -0
  123. package/output/cl_http_server.clas.mjs +28 -0
  124. package/output/cl_http_server.clas.mjs.map +10 -0
  125. package/output/cl_http_utility.clas.mjs +178 -0
  126. package/output/cl_http_utility.clas.mjs.map +10 -0
  127. package/output/cl_i18n_languages.clas.mjs +318 -0
  128. package/output/cl_i18n_languages.clas.mjs.map +10 -0
  129. package/output/cl_ixml.clas.locals.mjs +1161 -0
  130. package/output/cl_ixml.clas.locals.mjs.map +10 -0
  131. package/output/cl_ixml.clas.mjs +62 -0
  132. package/output/cl_ixml.clas.mjs.map +10 -0
  133. package/output/cl_message_helper.clas.mjs +81 -0
  134. package/output/cl_message_helper.clas.mjs.map +10 -0
  135. package/output/cl_numberrange_runtime.clas.mjs +32 -0
  136. package/output/cl_numberrange_runtime.clas.mjs.map +10 -0
  137. package/output/cl_oo_factory.clas.mjs +38 -0
  138. package/output/cl_oo_factory.clas.mjs.map +10 -0
  139. package/output/cl_progress_indicator.clas.mjs +30 -0
  140. package/output/cl_progress_indicator.clas.mjs.map +10 -0
  141. package/output/cl_salv_aggregations.clas.mjs +14 -0
  142. package/output/cl_salv_aggregations.clas.mjs.map +10 -0
  143. package/output/cl_salv_column.clas.mjs +35 -0
  144. package/output/cl_salv_column.clas.mjs.map +10 -0
  145. package/output/cl_salv_columns_table.clas.mjs +42 -0
  146. package/output/cl_salv_columns_table.clas.mjs.map +10 -0
  147. package/output/cl_salv_events_table.clas.mjs +14 -0
  148. package/output/cl_salv_events_table.clas.mjs.map +10 -0
  149. package/output/cl_salv_functions_list.clas.mjs +19 -0
  150. package/output/cl_salv_functions_list.clas.mjs.map +10 -0
  151. package/output/cl_salv_table.clas.mjs +122 -0
  152. package/output/cl_salv_table.clas.mjs.map +10 -0
  153. package/output/cl_shm_area.clas.mjs +267 -0
  154. package/output/cl_shm_area.clas.mjs.map +10 -0
  155. package/output/cl_shm_service.clas.mjs +56 -0
  156. package/output/cl_shm_service.clas.mjs.map +10 -0
  157. package/output/cl_sxml_string_reader.clas.locals.mjs +323 -0
  158. package/output/cl_sxml_string_reader.clas.locals.mjs.map +10 -0
  159. package/output/cl_sxml_string_reader.clas.mjs +25 -0
  160. package/output/cl_sxml_string_reader.clas.mjs.map +10 -0
  161. package/output/cl_sxml_string_writer.clas.mjs +146 -0
  162. package/output/cl_sxml_string_writer.clas.mjs.map +10 -0
  163. package/output/cl_system_uuid.clas.mjs +35 -0
  164. package/output/cl_system_uuid.clas.mjs.map +10 -0
  165. package/output/cx_abap_message_digest.clas.mjs +16 -0
  166. package/output/cx_abap_message_digest.clas.mjs.map +10 -0
  167. package/output/cx_abap_random.clas.mjs +16 -0
  168. package/output/cx_abap_random.clas.mjs.map +10 -0
  169. package/output/cx_apc_error.clas.mjs +16 -0
  170. package/output/cx_apc_error.clas.mjs.map +10 -0
  171. package/output/cx_bcs.clas.mjs +16 -0
  172. package/output/cx_bcs.clas.mjs.map +10 -0
  173. package/output/cx_dynamic_check.clas.mjs +15 -0
  174. package/output/cx_dynamic_check.clas.mjs.map +10 -0
  175. package/output/cx_gdt_conversion.clas.mjs +16 -0
  176. package/output/cx_gdt_conversion.clas.mjs.map +10 -0
  177. package/output/cx_no_check.clas.mjs +17 -0
  178. package/output/cx_no_check.clas.mjs.map +10 -0
  179. package/output/cx_oo_clif_not_exists.clas.mjs +16 -0
  180. package/output/cx_oo_clif_not_exists.clas.mjs.map +10 -0
  181. package/output/cx_parameter_invalid.clas.mjs +16 -0
  182. package/output/cx_parameter_invalid.clas.mjs.map +10 -0
  183. package/output/cx_parameter_invalid_range.clas.mjs +16 -0
  184. package/output/cx_parameter_invalid_range.clas.mjs.map +10 -0
  185. package/output/cx_parameter_invalid_type.clas.mjs +16 -0
  186. package/output/cx_parameter_invalid_type.clas.mjs.map +10 -0
  187. package/output/cx_root.clas.mjs +44 -0
  188. package/output/cx_root.clas.mjs.map +10 -0
  189. package/output/cx_salv_access_error.clas.mjs +16 -0
  190. package/output/cx_salv_access_error.clas.mjs.map +10 -0
  191. package/output/cx_salv_data_error.clas.mjs +16 -0
  192. package/output/cx_salv_data_error.clas.mjs.map +10 -0
  193. package/output/cx_salv_error.clas.mjs +16 -0
  194. package/output/cx_salv_error.clas.mjs.map +10 -0
  195. package/output/cx_salv_msg.clas.mjs +16 -0
  196. package/output/cx_salv_msg.clas.mjs.map +10 -0
  197. package/output/cx_salv_not_found.clas.mjs +16 -0
  198. package/output/cx_salv_not_found.clas.mjs.map +10 -0
  199. package/output/cx_salv_static_check.clas.mjs +16 -0
  200. package/output/cx_salv_static_check.clas.mjs.map +10 -0
  201. package/output/cx_shm_already_detached.clas.mjs +16 -0
  202. package/output/cx_shm_already_detached.clas.mjs.map +10 -0
  203. package/output/cx_shm_attach_error.clas.mjs +16 -0
  204. package/output/cx_shm_attach_error.clas.mjs.map +10 -0
  205. package/output/cx_shm_build_failed.clas.mjs +16 -0
  206. package/output/cx_shm_build_failed.clas.mjs.map +10 -0
  207. package/output/cx_shm_change_lock_active.clas.mjs +16 -0
  208. package/output/cx_shm_change_lock_active.clas.mjs.map +10 -0
  209. package/output/cx_shm_completion_error.clas.mjs +16 -0
  210. package/output/cx_shm_completion_error.clas.mjs.map +10 -0
  211. package/output/cx_shm_detach_error.clas.mjs +16 -0
  212. package/output/cx_shm_detach_error.clas.mjs.map +10 -0
  213. package/output/cx_shm_error.clas.mjs +16 -0
  214. package/output/cx_shm_error.clas.mjs.map +10 -0
  215. package/output/cx_shm_event_execution_failed.clas.mjs +16 -0
  216. package/output/cx_shm_event_execution_failed.clas.mjs.map +10 -0
  217. package/output/cx_shm_exclusive_lock_active.clas.mjs +16 -0
  218. package/output/cx_shm_exclusive_lock_active.clas.mjs.map +10 -0
  219. package/output/cx_shm_general_error.clas.mjs +16 -0
  220. package/output/cx_shm_general_error.clas.mjs.map +10 -0
  221. package/output/cx_shm_inconsistent.clas.mjs +16 -0
  222. package/output/cx_shm_inconsistent.clas.mjs.map +10 -0
  223. package/output/cx_shm_initial_reference.clas.mjs +16 -0
  224. package/output/cx_shm_initial_reference.clas.mjs.map +10 -0
  225. package/output/cx_shm_no_active_version.clas.mjs +16 -0
  226. package/output/cx_shm_no_active_version.clas.mjs.map +10 -0
  227. package/output/cx_shm_parameter_error.clas.mjs +16 -0
  228. package/output/cx_shm_parameter_error.clas.mjs.map +10 -0
  229. package/output/cx_shm_pending_lock_removed.clas.mjs +16 -0
  230. package/output/cx_shm_pending_lock_removed.clas.mjs.map +10 -0
  231. package/output/cx_shm_read_lock_active.clas.mjs +16 -0
  232. package/output/cx_shm_read_lock_active.clas.mjs.map +10 -0
  233. package/output/cx_shm_secondary_commit.clas.mjs +16 -0
  234. package/output/cx_shm_secondary_commit.clas.mjs.map +10 -0
  235. package/output/cx_shm_version_limit_exceeded.clas.mjs +16 -0
  236. package/output/cx_shm_version_limit_exceeded.clas.mjs.map +10 -0
  237. package/output/cx_shm_wrong_handle.clas.mjs +16 -0
  238. package/output/cx_shm_wrong_handle.clas.mjs.map +10 -0
  239. package/output/cx_shma_dynamic.clas.mjs +16 -0
  240. package/output/cx_shma_dynamic.clas.mjs.map +10 -0
  241. package/output/cx_shma_inconsistent.clas.mjs +16 -0
  242. package/output/cx_shma_inconsistent.clas.mjs.map +10 -0
  243. package/output/cx_shma_not_configured.clas.mjs +16 -0
  244. package/output/cx_shma_not_configured.clas.mjs.map +10 -0
  245. package/output/cx_static_check.clas.mjs +27 -0
  246. package/output/cx_static_check.clas.mjs.map +10 -0
  247. package/output/cx_sxml_error.clas.mjs +16 -0
  248. package/output/cx_sxml_error.clas.mjs.map +10 -0
  249. package/output/cx_sxml_illegal_argument_error.clas.mjs +16 -0
  250. package/output/cx_sxml_illegal_argument_error.clas.mjs.map +10 -0
  251. package/output/cx_sxml_name_error.clas.mjs +16 -0
  252. package/output/cx_sxml_name_error.clas.mjs.map +10 -0
  253. package/output/cx_sxml_parse_error.clas.mjs +20 -0
  254. package/output/cx_sxml_parse_error.clas.mjs.map +10 -0
  255. package/output/cx_sxml_state_error.clas.mjs +16 -0
  256. package/output/cx_sxml_state_error.clas.mjs.map +10 -0
  257. package/output/cx_sy_arithmetic_error.clas.mjs +16 -0
  258. package/output/cx_sy_arithmetic_error.clas.mjs.map +10 -0
  259. package/output/cx_sy_buffer_overflow.clas.mjs +16 -0
  260. package/output/cx_sy_buffer_overflow.clas.mjs.map +10 -0
  261. package/output/cx_sy_codepage_converter_init.clas.mjs +16 -0
  262. package/output/cx_sy_codepage_converter_init.clas.mjs.map +10 -0
  263. package/output/cx_sy_compression_error.clas.mjs +16 -0
  264. package/output/cx_sy_compression_error.clas.mjs.map +10 -0
  265. package/output/cx_sy_conversion_codepage.clas.mjs +17 -0
  266. package/output/cx_sy_conversion_codepage.clas.mjs.map +10 -0
  267. package/output/cx_sy_conversion_data_loss.clas.mjs +16 -0
  268. package/output/cx_sy_conversion_data_loss.clas.mjs.map +10 -0
  269. package/output/cx_sy_conversion_error.clas.mjs +16 -0
  270. package/output/cx_sy_conversion_error.clas.mjs.map +10 -0
  271. package/output/cx_sy_conversion_no_number.clas.mjs +16 -0
  272. package/output/cx_sy_conversion_no_number.clas.mjs.map +10 -0
  273. package/output/cx_sy_conversion_overflow.clas.mjs +16 -0
  274. package/output/cx_sy_conversion_overflow.clas.mjs.map +10 -0
  275. package/output/cx_sy_create_data_error.clas.mjs +16 -0
  276. package/output/cx_sy_create_data_error.clas.mjs.map +10 -0
  277. package/output/cx_sy_create_object_error.clas.mjs +29 -0
  278. package/output/cx_sy_create_object_error.clas.mjs.map +10 -0
  279. package/output/cx_sy_data_access_error.clas.mjs +16 -0
  280. package/output/cx_sy_data_access_error.clas.mjs.map +10 -0
  281. package/output/cx_sy_duplicate_key.clas.mjs +16 -0
  282. package/output/cx_sy_duplicate_key.clas.mjs.map +10 -0
  283. package/output/cx_sy_dyn_call_error.clas.mjs +16 -0
  284. package/output/cx_sy_dyn_call_error.clas.mjs.map +10 -0
  285. package/output/cx_sy_dyn_call_illegal_class.clas.mjs +16 -0
  286. package/output/cx_sy_dyn_call_illegal_class.clas.mjs.map +10 -0
  287. package/output/cx_sy_dyn_call_illegal_func.clas.mjs +16 -0
  288. package/output/cx_sy_dyn_call_illegal_func.clas.mjs.map +10 -0
  289. package/output/cx_sy_dyn_call_illegal_method.clas.mjs +27 -0
  290. package/output/cx_sy_dyn_call_illegal_method.clas.mjs.map +10 -0
  291. package/output/cx_sy_dyn_call_param_not_found.clas.mjs +16 -0
  292. package/output/cx_sy_dyn_call_param_not_found.clas.mjs.map +10 -0
  293. package/output/cx_sy_dyn_call_parameter_error.clas.mjs +17 -0
  294. package/output/cx_sy_dyn_call_parameter_error.clas.mjs.map +10 -0
  295. package/output/cx_sy_dynamic_osql_error.clas.mjs +18 -0
  296. package/output/cx_sy_dynamic_osql_error.clas.mjs.map +10 -0
  297. package/output/cx_sy_dynamic_osql_semantics.clas.mjs +18 -0
  298. package/output/cx_sy_dynamic_osql_semantics.clas.mjs.map +10 -0
  299. package/output/cx_sy_itab_duplicate_key.clas.mjs +16 -0
  300. package/output/cx_sy_itab_duplicate_key.clas.mjs.map +10 -0
  301. package/output/cx_sy_itab_error.clas.mjs +16 -0
  302. package/output/cx_sy_itab_error.clas.mjs.map +10 -0
  303. package/output/cx_sy_itab_line_not_found.clas.mjs +16 -0
  304. package/output/cx_sy_itab_line_not_found.clas.mjs.map +10 -0
  305. package/output/cx_sy_message_illegal_text.clas.mjs +16 -0
  306. package/output/cx_sy_message_illegal_text.clas.mjs.map +10 -0
  307. package/output/cx_sy_move_cast_error.clas.mjs +16 -0
  308. package/output/cx_sy_move_cast_error.clas.mjs.map +10 -0
  309. package/output/cx_sy_open_sql_error.clas.mjs +18 -0
  310. package/output/cx_sy_open_sql_error.clas.mjs.map +10 -0
  311. package/output/cx_sy_range_out_of_bounds.clas.mjs +16 -0
  312. package/output/cx_sy_range_out_of_bounds.clas.mjs.map +10 -0
  313. package/output/cx_sy_ref_is_initial.clas.mjs +16 -0
  314. package/output/cx_sy_ref_is_initial.clas.mjs.map +10 -0
  315. package/output/cx_sy_sql_error.clas.mjs +20 -0
  316. package/output/cx_sy_sql_error.clas.mjs.map +10 -0
  317. package/output/cx_sy_strg_par_val.clas.mjs +16 -0
  318. package/output/cx_sy_strg_par_val.clas.mjs.map +10 -0
  319. package/output/cx_sy_struct_attributes.clas.mjs +16 -0
  320. package/output/cx_sy_struct_attributes.clas.mjs.map +10 -0
  321. package/output/cx_sy_struct_comp_name.clas.mjs +16 -0
  322. package/output/cx_sy_struct_comp_name.clas.mjs.map +10 -0
  323. package/output/cx_sy_struct_comp_type.clas.mjs +16 -0
  324. package/output/cx_sy_struct_comp_type.clas.mjs.map +10 -0
  325. package/output/cx_sy_struct_creation.clas.mjs +16 -0
  326. package/output/cx_sy_struct_creation.clas.mjs.map +10 -0
  327. package/output/cx_sy_type_creation.clas.mjs +16 -0
  328. package/output/cx_sy_type_creation.clas.mjs.map +10 -0
  329. package/output/cx_sy_zerodivide.clas.mjs +16 -0
  330. package/output/cx_sy_zerodivide.clas.mjs.map +10 -0
  331. package/output/cx_transformation_error.clas.mjs +16 -0
  332. package/output/cx_transformation_error.clas.mjs.map +10 -0
  333. package/output/cx_uuid_error.clas.mjs +16 -0
  334. package/output/cx_uuid_error.clas.mjs.map +10 -0
  335. package/output/cx_xslt_exception.clas.mjs +16 -0
  336. package/output/cx_xslt_exception.clas.mjs.map +10 -0
  337. package/output/cx_xslt_format_error.clas.mjs +16 -0
  338. package/output/cx_xslt_format_error.clas.mjs.map +10 -0
  339. package/output/cx_xslt_runtime_error.clas.mjs +16 -0
  340. package/output/cx_xslt_runtime_error.clas.mjs.map +10 -0
  341. package/output/cx_xslt_system_error.clas.mjs +16 -0
  342. package/output/cx_xslt_system_error.clas.mjs.map +10 -0
  343. package/output/dats.dtel.mjs +6 -0
  344. package/output/ddfields.ttyp.mjs +4 -0
  345. package/output/ddoption.dtel.mjs +6 -0
  346. package/output/ddsign.dtel.mjs +6 -0
  347. package/output/devclass.dtel.mjs +6 -0
  348. package/output/dfies.tabl.mjs +5 -0
  349. package/output/doku_obj.dtel.mjs +6 -0
  350. package/output/dynprofld.dtel.mjs +6 -0
  351. package/output/file_table.tabl.mjs +5 -0
  352. package/output/filetable.ttyp.mjs +4 -0
  353. package/output/flag.dtel.mjs +6 -0
  354. package/output/funcname.dtel.mjs +6 -0
  355. package/output/guid.dtel.mjs +6 -0
  356. package/output/if_abap_channel_types.intf.mjs +9 -0
  357. package/output/if_abap_channel_types.intf.mjs.map +8 -0
  358. package/output/if_abap_conv_in.intf.mjs +8 -0
  359. package/output/if_abap_conv_in.intf.mjs.map +8 -0
  360. package/output/if_abap_conv_out.intf.mjs +8 -0
  361. package/output/if_abap_conv_out.intf.mjs.map +8 -0
  362. package/output/if_abap_unit_constant.intf.mjs +15 -0
  363. package/output/if_abap_unit_constant.intf.mjs.map +8 -0
  364. package/output/if_apc_tcp_frame_types.intf.mjs +14 -0
  365. package/output/if_apc_tcp_frame_types.intf.mjs.map +8 -0
  366. package/output/if_apc_wsp_binding_manager.intf.mjs +8 -0
  367. package/output/if_apc_wsp_binding_manager.intf.mjs.map +8 -0
  368. package/output/if_apc_wsp_client.intf.mjs +8 -0
  369. package/output/if_apc_wsp_client.intf.mjs.map +8 -0
  370. package/output/if_apc_wsp_event_handler.intf.mjs +8 -0
  371. package/output/if_apc_wsp_event_handler.intf.mjs.map +8 -0
  372. package/output/if_apc_wsp_extension.intf.mjs +8 -0
  373. package/output/if_apc_wsp_extension.intf.mjs.map +8 -0
  374. package/output/if_apc_wsp_initial_request.intf.mjs +8 -0
  375. package/output/if_apc_wsp_initial_request.intf.mjs.map +8 -0
  376. package/output/if_apc_wsp_message.intf.mjs +8 -0
  377. package/output/if_apc_wsp_message.intf.mjs.map +8 -0
  378. package/output/if_apc_wsp_message_manager.intf.mjs +8 -0
  379. package/output/if_apc_wsp_message_manager.intf.mjs.map +8 -0
  380. package/output/if_apc_wsp_server_context.intf.mjs +8 -0
  381. package/output/if_apc_wsp_server_context.intf.mjs.map +8 -0
  382. package/output/if_aunit_constants.intf.mjs +27 -0
  383. package/output/if_aunit_constants.intf.mjs.map +8 -0
  384. package/output/if_document_bcs.intf.mjs +8 -0
  385. package/output/if_document_bcs.intf.mjs.map +8 -0
  386. package/output/if_http_client.intf.mjs +12 -0
  387. package/output/if_http_client.intf.mjs.map +8 -0
  388. package/output/if_http_entity.intf.mjs +14 -0
  389. package/output/if_http_entity.intf.mjs.map +8 -0
  390. package/output/if_http_extension.intf.mjs +12 -0
  391. package/output/if_http_extension.intf.mjs.map +8 -0
  392. package/output/if_http_request.intf.mjs +16 -0
  393. package/output/if_http_request.intf.mjs.map +8 -0
  394. package/output/if_http_response.intf.mjs +8 -0
  395. package/output/if_http_response.intf.mjs.map +8 -0
  396. package/output/if_http_server.intf.mjs +20 -0
  397. package/output/if_http_server.intf.mjs.map +8 -0
  398. package/output/if_http_utility.intf.mjs +8 -0
  399. package/output/if_http_utility.intf.mjs.map +8 -0
  400. package/output/if_ixml.intf.mjs +8 -0
  401. package/output/if_ixml.intf.mjs.map +8 -0
  402. package/output/if_ixml_attribute.intf.mjs +8 -0
  403. package/output/if_ixml_attribute.intf.mjs.map +8 -0
  404. package/output/if_ixml_document.intf.mjs +8 -0
  405. package/output/if_ixml_document.intf.mjs.map +8 -0
  406. package/output/if_ixml_element.intf.mjs +8 -0
  407. package/output/if_ixml_element.intf.mjs.map +8 -0
  408. package/output/if_ixml_encoding.intf.mjs +10 -0
  409. package/output/if_ixml_encoding.intf.mjs.map +8 -0
  410. package/output/if_ixml_istream.intf.mjs +8 -0
  411. package/output/if_ixml_istream.intf.mjs.map +8 -0
  412. package/output/if_ixml_named_node_map.intf.mjs +8 -0
  413. package/output/if_ixml_named_node_map.intf.mjs.map +8 -0
  414. package/output/if_ixml_node.intf.mjs +12 -0
  415. package/output/if_ixml_node.intf.mjs.map +8 -0
  416. package/output/if_ixml_node_iterator.intf.mjs +8 -0
  417. package/output/if_ixml_node_iterator.intf.mjs.map +8 -0
  418. package/output/if_ixml_node_list.intf.mjs +8 -0
  419. package/output/if_ixml_node_list.intf.mjs.map +8 -0
  420. package/output/if_ixml_ostream.intf.mjs +8 -0
  421. package/output/if_ixml_ostream.intf.mjs.map +8 -0
  422. package/output/if_ixml_parse_error.intf.mjs +8 -0
  423. package/output/if_ixml_parse_error.intf.mjs.map +8 -0
  424. package/output/if_ixml_parser.intf.mjs +10 -0
  425. package/output/if_ixml_parser.intf.mjs.map +8 -0
  426. package/output/if_ixml_renderer.intf.mjs +8 -0
  427. package/output/if_ixml_renderer.intf.mjs.map +8 -0
  428. package/output/if_ixml_stream_factory.intf.mjs +8 -0
  429. package/output/if_ixml_stream_factory.intf.mjs.map +8 -0
  430. package/output/if_ixml_unknown.intf.mjs +8 -0
  431. package/output/if_ixml_unknown.intf.mjs.map +8 -0
  432. package/output/if_message.intf.mjs +8 -0
  433. package/output/if_message.intf.mjs.map +8 -0
  434. package/output/if_oo_adt_classrun.intf.mjs +8 -0
  435. package/output/if_oo_adt_classrun.intf.mjs.map +8 -0
  436. package/output/if_oo_adt_classrun_out.intf.mjs +8 -0
  437. package/output/if_oo_adt_classrun_out.intf.mjs.map +8 -0
  438. package/output/if_oo_clif_source.intf.mjs +8 -0
  439. package/output/if_oo_clif_source.intf.mjs.map +8 -0
  440. package/output/if_recipient_bcs.intf.mjs +8 -0
  441. package/output/if_recipient_bcs.intf.mjs.map +8 -0
  442. package/output/if_salv_c_bool_sap.intf.mjs +12 -0
  443. package/output/if_salv_c_bool_sap.intf.mjs.map +8 -0
  444. package/output/if_salv_c_selection_mode.intf.mjs +18 -0
  445. package/output/if_salv_c_selection_mode.intf.mjs.map +8 -0
  446. package/output/if_sender_bcs.intf.mjs +8 -0
  447. package/output/if_sender_bcs.intf.mjs.map +8 -0
  448. package/output/if_serializable_object.intf.mjs +8 -0
  449. package/output/if_serializable_object.intf.mjs.map +8 -0
  450. package/output/if_shm_build_instance.intf.mjs +8 -0
  451. package/output/if_shm_build_instance.intf.mjs.map +8 -0
  452. package/output/if_shm_trace.intf.mjs +8 -0
  453. package/output/if_shm_trace.intf.mjs.map +8 -0
  454. package/output/if_sxml.intf.mjs +17 -0
  455. package/output/if_sxml.intf.mjs.map +8 -0
  456. package/output/if_sxml_attribute.intf.mjs +9 -0
  457. package/output/if_sxml_attribute.intf.mjs.map +8 -0
  458. package/output/if_sxml_close_element.intf.mjs +8 -0
  459. package/output/if_sxml_close_element.intf.mjs.map +8 -0
  460. package/output/if_sxml_node.intf.mjs +19 -0
  461. package/output/if_sxml_node.intf.mjs.map +8 -0
  462. package/output/if_sxml_open_element.intf.mjs +8 -0
  463. package/output/if_sxml_open_element.intf.mjs.map +8 -0
  464. package/output/if_sxml_reader.intf.mjs +8 -0
  465. package/output/if_sxml_reader.intf.mjs.map +8 -0
  466. package/output/if_sxml_value.intf.mjs +11 -0
  467. package/output/if_sxml_value.intf.mjs.map +8 -0
  468. package/output/if_sxml_value_node.intf.mjs +8 -0
  469. package/output/if_sxml_value_node.intf.mjs.map +8 -0
  470. package/output/if_sxml_writer.intf.mjs +26 -0
  471. package/output/if_sxml_writer.intf.mjs.map +8 -0
  472. package/output/if_sxmlp_factory.intf.mjs +8 -0
  473. package/output/if_sxmlp_factory.intf.mjs.map +8 -0
  474. package/output/if_sxmlp_list.intf.mjs +8 -0
  475. package/output/if_sxmlp_list.intf.mjs.map +8 -0
  476. package/output/if_sxmlp_part.intf.mjs +8 -0
  477. package/output/if_sxmlp_part.intf.mjs.map +8 -0
  478. package/output/if_sxmlp_simple.intf.mjs +8 -0
  479. package/output/if_sxmlp_simple.intf.mjs.map +8 -0
  480. package/output/if_system_uuid_rfc4122_static.intf.mjs +8 -0
  481. package/output/if_system_uuid_rfc4122_static.intf.mjs.map +8 -0
  482. package/output/if_system_uuid_static.intf.mjs +8 -0
  483. package/output/if_system_uuid_static.intf.mjs.map +8 -0
  484. package/output/if_t100_dyn_msg.intf.mjs +8 -0
  485. package/output/if_t100_dyn_msg.intf.mjs.map +8 -0
  486. package/output/if_t100_message.intf.mjs +15 -0
  487. package/output/if_t100_message.intf.mjs.map +8 -0
  488. package/output/ihttpnvp.tabl.mjs +5 -0
  489. package/output/index.mjs +35 -0
  490. package/output/init.mjs +8965 -0
  491. package/output/int1.dtel.mjs +6 -0
  492. package/output/int2.dtel.mjs +6 -0
  493. package/output/int4.dtel.mjs +6 -0
  494. package/output/kernel_authority_check.clas.mjs +20 -0
  495. package/output/kernel_authority_check.clas.mjs.map +10 -0
  496. package/output/kernel_call.clas.mjs +28 -0
  497. package/output/kernel_call.clas.mjs.map +10 -0
  498. package/output/kernel_call_transformation.clas.mjs +182 -0
  499. package/output/kernel_call_transformation.clas.mjs.map +10 -0
  500. package/output/kernel_create_data_handle.clas.mjs +121 -0
  501. package/output/kernel_create_data_handle.clas.mjs.map +10 -0
  502. package/output/kernel_cx_assert.clas.mjs +33 -0
  503. package/output/kernel_cx_assert.clas.mjs.map +10 -0
  504. package/output/kernel_fugr_test.clas.mjs +14 -0
  505. package/output/kernel_fugr_test.clas.mjs.map +10 -0
  506. package/output/kernel_ixml_json_to_data.clas.mjs +145 -0
  507. package/output/kernel_ixml_json_to_data.clas.mjs.map +10 -0
  508. package/output/kernel_ixml_xml_to_data.clas.mjs +96 -0
  509. package/output/kernel_ixml_xml_to_data.clas.mjs.map +10 -0
  510. package/output/kernel_json_to_ixml.clas.mjs +78 -0
  511. package/output/kernel_json_to_ixml.clas.mjs.map +10 -0
  512. package/output/kernel_lock.clas.mjs +31 -0
  513. package/output/kernel_lock.clas.mjs.map +10 -0
  514. package/output/kernel_numberrange.clas.mjs +38 -0
  515. package/output/kernel_numberrange.clas.mjs.map +10 -0
  516. package/output/kernel_push_channels.clas.mjs +20 -0
  517. package/output/kernel_push_channels.clas.mjs.map +10 -0
  518. package/output/kernel_scan_abap_source.clas.mjs +212 -0
  519. package/output/kernel_scan_abap_source.clas.mjs.map +10 -0
  520. package/output/kernel_unit_runner.clas.mjs +199 -0
  521. package/output/kernel_unit_runner.clas.mjs.map +10 -0
  522. package/output/laiso.dtel.mjs +6 -0
  523. package/output/land1.dtel.mjs +6 -0
  524. package/output/langu.dtel.mjs +6 -0
  525. package/output/lvc_nokeyc.dtel.mjs +6 -0
  526. package/output/mandt.dtel.mjs +6 -0
  527. package/output/match_result.tabl.mjs +5 -0
  528. package/output/match_result_tab.ttyp.mjs +4 -0
  529. package/output/msehi.dtel.mjs +6 -0
  530. package/output/number_get_next.fugr.number_get_next.mjs +23 -0
  531. package/output/number_get_next.fugr.number_get_next.mjs.map +8 -0
  532. package/output/number_get_next.fugr.saplnumber_get_next.mjs +5 -0
  533. package/output/number_get_next.fugr.saplnumber_get_next.mjs.map +8 -0
  534. package/output/numc4.dtel.mjs +6 -0
  535. package/output/openabap.fugr.conversion_exit_alpha_input.mjs +17 -0
  536. package/output/openabap.fugr.conversion_exit_alpha_input.mjs.map +8 -0
  537. package/output/openabap.fugr.conversion_exit_alpha_output.mjs +18 -0
  538. package/output/openabap.fugr.conversion_exit_alpha_output.mjs.map +8 -0
  539. package/output/openabap.fugr.conversion_exit_isola_input.mjs +20 -0
  540. package/output/openabap.fugr.conversion_exit_isola_input.mjs.map +8 -0
  541. package/output/openabap.fugr.conversion_exit_isola_output.mjs +17 -0
  542. package/output/openabap.fugr.conversion_exit_isola_output.mjs.map +8 -0
  543. package/output/openabap.fugr.convert_itf_to_stream_text.mjs +21 -0
  544. package/output/openabap.fugr.convert_itf_to_stream_text.mjs.map +8 -0
  545. package/output/openabap.fugr.docu_get.mjs +29 -0
  546. package/output/openabap.fugr.docu_get.mjs.map +8 -0
  547. package/output/openabap.fugr.generate_sec_random.mjs +19 -0
  548. package/output/openabap.fugr.generate_sec_random.mjs.map +8 -0
  549. package/output/openabap.fugr.get_system_timezone.mjs +12 -0
  550. package/output/openabap.fugr.get_system_timezone.mjs.map +8 -0
  551. package/output/openabap.fugr.saplzopenabap.mjs +5 -0
  552. package/output/openabap.fugr.saplzopenabap.mjs.map +8 -0
  553. package/output/openabap.fugr.system_callstack.mjs +16 -0
  554. package/output/openabap.fugr.system_callstack.mjs.map +8 -0
  555. package/output/openabap.fugr.system_installed_languages.mjs +13 -0
  556. package/output/openabap.fugr.system_installed_languages.mjs.map +8 -0
  557. package/output/openabap.fugr.text_split.mjs +33 -0
  558. package/output/openabap.fugr.text_split.mjs.map +8 -0
  559. package/output/reposrc.tabl.mjs +5 -0
  560. package/output/rfcdest.dtel.mjs +6 -0
  561. package/output/scrtext_l.dtel.mjs +6 -0
  562. package/output/scrtext_m.dtel.mjs +6 -0
  563. package/output/scrtext_s.dtel.mjs +6 -0
  564. package/output/scx_attrname.dtel.mjs +6 -0
  565. package/output/scx_t100key.tabl.mjs +5 -0
  566. package/output/seoclsname.dtel.mjs +6 -0
  567. package/output/shm_affect_server.dtel.mjs +6 -0
  568. package/output/shm_area_name.dtel.mjs +6 -0
  569. package/output/shm_attach_mode.dtel.mjs +6 -0
  570. package/output/shm_auto_build_class_name.dtel.mjs +6 -0
  571. package/output/shm_client.dtel.mjs +6 -0
  572. package/output/shm_constr_invocation_mode.dtel.mjs +6 -0
  573. package/output/shm_inst_infos.dtel.mjs +6 -0
  574. package/output/shm_inst_name.dtel.mjs +6 -0
  575. package/output/shm_life_context.dtel.mjs +6 -0
  576. package/output/shm_properties.tabl.mjs +5 -0
  577. package/output/shm_rc.dtel.mjs +6 -0
  578. package/output/shma_attributes.tabl.mjs +5 -0
  579. package/output/shma_client.dtel.mjs +6 -0
  580. package/output/shmm_trc_variant_name.dtel.mjs +6 -0
  581. package/output/so_raw255.dtel.mjs +6 -0
  582. package/output/so_text255.dtel.mjs +6 -0
  583. package/output/soli.tabl.mjs +5 -0
  584. package/output/soli_tab.ttyp.mjs +4 -0
  585. package/output/solix.tabl.mjs +5 -0
  586. package/output/solix_tab.ttyp.mjs +4 -0
  587. package/output/sotr_conc.dtel.mjs +6 -0
  588. package/output/spras.dtel.mjs +6 -0
  589. package/output/ssfapplssl.dtel.mjs +6 -0
  590. package/output/sstmnt.tabl.mjs +5 -0
  591. package/output/sstmnt_tab.ttyp.mjs +4 -0
  592. package/output/sstruc.tabl.mjs +5 -0
  593. package/output/sstruc_tab.ttyp.mjs +4 -0
  594. package/output/stokes.tabl.mjs +5 -0
  595. package/output/stokes_tab.ttyp.mjs +4 -0
  596. package/output/stokesx.tabl.mjs +5 -0
  597. package/output/string_table.ttyp.mjs +4 -0
  598. package/output/submatch_result.tabl.mjs +5 -0
  599. package/output/submatch_result_tab.ttyp.mjs +4 -0
  600. package/output/sydate.dtel.mjs +6 -0
  601. package/output/symsg.tabl.mjs +5 -0
  602. package/output/symsgid.dtel.mjs +6 -0
  603. package/output/symsgno.dtel.mjs +6 -0
  604. package/output/symsgty.dtel.mjs +6 -0
  605. package/output/symsgv.dtel.mjs +6 -0
  606. package/output/syst_host.dtel.mjs +6 -0
  607. package/output/sysubrc.dtel.mjs +6 -0
  608. package/output/sysuuid_c36.dtel.mjs +6 -0
  609. package/output/sysuuid_x16.dtel.mjs +6 -0
  610. package/output/syuname.dtel.mjs +6 -0
  611. package/output/t000.tabl.mjs +5 -0
  612. package/output/t100.tabl.mjs +5 -0
  613. package/output/tabfdpos.dtel.mjs +6 -0
  614. package/output/tabname.dtel.mjs +6 -0
  615. package/output/tadir.tabl.mjs +5 -0
  616. package/output/tdevc.tabl.mjs +5 -0
  617. package/output/tdline.dtel.mjs +6 -0
  618. package/output/text20.dtel.mjs +6 -0
  619. package/output/text200.dtel.mjs +6 -0
  620. package/output/text255.dtel.mjs +6 -0
  621. package/output/text30.dtel.mjs +6 -0
  622. package/output/text80.dtel.mjs +6 -0
  623. package/output/textpool.tabl.mjs +5 -0
  624. package/output/tfdir.tabl.mjs +5 -0
  625. package/output/tihttpnvp.ttyp.mjs +4 -0
  626. package/output/timestamp.dtel.mjs +6 -0
  627. package/output/timestampl.dtel.mjs +6 -0
  628. package/output/timezone.dtel.mjs +6 -0
  629. package/output/tline.tabl.mjs +5 -0
  630. package/output/tline_tab.ttyp.mjs +4 -0
  631. package/output/trfunction.dtel.mjs +6 -0
  632. package/output/trkorr.dtel.mjs +6 -0
  633. package/output/tzntstmpl.dtel.mjs +6 -0
  634. package/output/uname.dtel.mjs +6 -0
  635. package/output/w3mime.tabl.mjs +5 -0
  636. package/output/wwwdatatab.tabl.mjs +5 -0
  637. package/output/wwwparams.tabl.mjs +5 -0
  638. package/output/xfeld.dtel.mjs +6 -0
  639. package/output/xsdboolean.dtel.mjs +6 -0
  640. package/output/xsdtime_t.dtel.mjs +6 -0
  641. package/output/zw3mi.fugr.saplzw3mi.mjs +5 -0
  642. package/output/zw3mi.fugr.saplzw3mi.mjs.map +8 -0
  643. package/output/zw3mi.fugr.wwwdata_export.mjs +14 -0
  644. package/output/zw3mi.fugr.wwwdata_export.mjs.map +8 -0
  645. package/output/zw3mi.fugr.wwwdata_import.mjs +14 -0
  646. package/output/zw3mi.fugr.wwwdata_import.mjs.map +8 -0
  647. package/output/zw3mi.fugr.wwwparams_insert.mjs +12 -0
  648. package/output/zw3mi.fugr.wwwparams_insert.mjs.map +8 -0
  649. package/output/zw3mi.fugr.wwwparams_read.mjs +27 -0
  650. package/output/zw3mi.fugr.wwwparams_read.mjs.map +8 -0
  651. package/package.json +3 -3
@@ -0,0 +1,43 @@
1
+ const {cx_root} = await import("./cx_root.clas.mjs");
2
+ // cl_abap_regex.clas.abap
3
+ class cl_abap_regex {
4
+ static INTERNAL_TYPE = 'CLAS';
5
+ static IMPLEMENTED_INTERFACES = [];
6
+ async constructor_(INPUT) {
7
+ this.me = new abap.types.ABAPObject();
8
+ this.me.set(this);
9
+ this.mv_pattern = new abap.types.String({qualifiedName: "STRING"});
10
+ this.mv_ignore_case = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
11
+ let pattern = new abap.types.Character();
12
+ if (INPUT && INPUT.pattern) {pattern = INPUT.pattern;}
13
+ let ignore_case = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
14
+ if (INPUT && INPUT.ignore_case) {ignore_case = INPUT.ignore_case;}
15
+ if (INPUT === undefined || INPUT.ignore_case === undefined) {ignore_case = abap.builtin.abap_false;}
16
+ this.mv_pattern.set(pattern);
17
+ this.mv_ignore_case.set(ignore_case);
18
+ return this;
19
+ }
20
+ async create_pcre(INPUT) {
21
+ return cl_abap_regex.create_pcre(INPUT);
22
+ }
23
+ static async create_pcre(INPUT) {
24
+ let regex = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_REGEX"});
25
+ let pattern = new abap.types.Character();
26
+ if (INPUT && INPUT.pattern) {pattern = INPUT.pattern;}
27
+ let ignore_case = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
28
+ if (INPUT && INPUT.ignore_case) {ignore_case = INPUT.ignore_case;}
29
+ if (INPUT === undefined || INPUT.ignore_case === undefined) {ignore_case = abap.builtin.abap_false;}
30
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
31
+ return regex;
32
+ }
33
+ async create_matcher(INPUT) {
34
+ let ro_matcher = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_MATCHER"});
35
+ let text = new abap.types.Character();
36
+ if (INPUT && INPUT.text) {text = INPUT.text;}
37
+ ro_matcher.set(await (new abap.Classes['CL_ABAP_MATCHER']()).constructor_({pattern: this.mv_pattern, ignore_case: this.mv_ignore_case, text: text}));
38
+ return ro_matcher;
39
+ }
40
+ }
41
+ abap.Classes['CL_ABAP_REGEX'] = cl_abap_regex;
42
+ export {cl_abap_regex};
43
+ //# sourceMappingURL=cl_abap_regex.clas.mjs.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [
4
+ "cl_abap_regex.clas.abap"
5
+ ],
6
+ "names": [],
7
+ "mappings": ";;AA2BA;;;EAEE;;;;;;;;;;IACE,oBAAa,OAAO;IACpB,wBAAiB,WAAW;IAC9B;;EAEA;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;IACnB;;EAEA;;;;;IAMA;;AAEF",
8
+ "file": "cl_abap_regex.clas.mjs",
9
+ "sourceRoot": ""
10
+ }
@@ -0,0 +1,180 @@
1
+ const {cl_abap_complexdescr} = await import("./cl_abap_complexdescr.clas.mjs");
2
+ const {cx_root} = await import("./cx_root.clas.mjs");
3
+ // cl_abap_structdescr.clas.abap
4
+ class cl_abap_structdescr extends cl_abap_complexdescr {
5
+ static INTERNAL_TYPE = 'CLAS';
6
+ static IMPLEMENTED_INTERFACES = [];
7
+ async constructor_(INPUT) {
8
+ await super.constructor_(INPUT);
9
+ this.me = new abap.types.ABAPObject();
10
+ this.me.set(this);
11
+ this.components = new abap.types.Table(new abap.types.Structure({"length": new abap.types.Integer({qualifiedName: "LENGTH"}), "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}), "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}), "name": new abap.types.Character(30, {"qualifiedName":"abap_compname"})}, "abap_compdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_compdescr_tab");
12
+ this.struct_kind = new abap.types.Character(1, {"qualifiedName":"abap_structkind"});
13
+ this.mt_refs = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
14
+ return this;
15
+ }
16
+ async get_symbols() {
17
+ let p_result = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "abap_component_symbol_tab");
18
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
19
+ return p_result;
20
+ }
21
+ async create(INPUT) {
22
+ return cl_abap_structdescr.create(INPUT);
23
+ }
24
+ static async create(INPUT) {
25
+ let ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR"});
26
+ let p_components = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
27
+ if (INPUT && INPUT.p_components) {p_components.set(INPUT.p_components);}
28
+ let p_strict = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
29
+ if (INPUT && INPUT.p_strict) {p_strict = INPUT.p_strict;}
30
+ let ls_component = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr");
31
+ let ls_ref = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs");
32
+ if (abap.compare.eq(abap.builtin.lines({val: p_components}), new abap.types.Integer().set(0))) {
33
+ throw await (new abap.Classes['CX_SY_STRUCT_ATTRIBUTES']()).constructor_();
34
+ }
35
+ for await (const unique71 of abap.statements.loop(p_components)) {
36
+ ls_component.set(unique71);
37
+ if (abap.compare.initial(ls_component.get().name)) {
38
+ throw await (new abap.Classes['CX_SY_STRUCT_COMP_NAME']()).constructor_();
39
+ } else if (abap.compare.initial(ls_component.get().type)) {
40
+ throw await (new abap.Classes['CX_SY_STRUCT_COMP_TYPE']()).constructor_();
41
+ } else if (abap.compare.gt(abap.builtin.strlen({val: ls_component.get().name}), new abap.types.Integer().set(30))) {
42
+ throw await (new abap.Classes['CX_SY_STRUCT_COMP_NAME']()).constructor_();
43
+ }
44
+ }
45
+ ref.set(await (new abap.Classes['CL_ABAP_STRUCTDESCR']()).constructor_());
46
+ for await (const unique72 of abap.statements.loop(p_components)) {
47
+ ls_component.set(unique72);
48
+ abap.statements.clear(ls_ref);
49
+ ls_ref.get().name.set(ls_component.get().name);
50
+ ls_ref.get().ref.set(ls_component.get().type);
51
+ abap.statements.append({source: ls_ref, target: ref.get().mt_refs});
52
+ }
53
+ await ref.get().update_components();
54
+ ref.get().type_kind.set(cl_abap_structdescr.typekind_struct2);
55
+ ref.get().kind.set(cl_abap_structdescr.kind_struct);
56
+ return ref;
57
+ }
58
+ async get_included_view(INPUT) {
59
+ let p_result = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_component_view_tab");
60
+ let p_level = new abap.types.Integer({qualifiedName: "I"});
61
+ if (INPUT && INPUT.p_level) {p_level.set(INPUT.p_level);}
62
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
63
+ return p_result;
64
+ }
65
+ async get_ddic_field_list(INPUT) {
66
+ let rt_components = new abap.types.Table(new abap.types.Structure({"tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "langu": new abap.types.Character(1, {}), "position": new abap.types.Numc({length: 4}), "offset": new abap.types.Numc({length: 6}), "domname": new abap.types.Character(30, {}), "rollname": new abap.types.Character(30, {}), "checktable": new abap.types.Character(1, {}), "leng": new abap.types.Numc({length: 6}), "intlen": new abap.types.Numc({length: 6}), "outputlen": new abap.types.Numc({length: 6}), "decimals": new abap.types.Numc({length: 6}), "datatype": new abap.types.Character(1, {}), "inttype": new abap.types.Character(1, {}), "reftable": new abap.types.Character(1, {}), "reffield": new abap.types.Character(1, {}), "precfield": new abap.types.Character(1, {}), "authorid": new abap.types.Character(1, {}), "memoryid": new abap.types.Character(1, {}), "logflag": new abap.types.Character(1, {}), "mask": new abap.types.Character(1, {}), "masklen": new abap.types.Character(1, {}), "convexit": new abap.types.Character(1, {}), "headlen": new abap.types.Character(1, {}), "scrlen1": new abap.types.Character(1, {}), "scrlen2": new abap.types.Character(1, {}), "scrlen3": new abap.types.Character(1, {}), "fieldtext": new abap.types.Character(1, {}), "reptext": new abap.types.Character(1, {}), "scrtext_s": new abap.types.Character(1, {}), "scrtext_m": new abap.types.Character(1, {}), "scrtext_l": new abap.types.Character(1, {}), "keyflag": new abap.types.Character(1, {}), "lowercase": new abap.types.Character(1, {}), "mac": new abap.types.Character(1, {}), "genkey": new abap.types.Character(1, {}), "noforkey": new abap.types.Character(1, {}), "valexi": new abap.types.Character(1, {}), "noauthch": new abap.types.Character(1, {}), "sign": new abap.types.Character(1, {}), "dynpfld": new abap.types.Character(1, {}), "f4availabl": new abap.types.Character(1, {}), "comptype": new abap.types.Character(1, {}), "outputstyle": new abap.types.Character(1, {}), "lfieldname": new abap.types.Character(132, {})}, "DFIES"), {"withHeader":false}, "DDFIELDS");
67
+ let p_langu = new abap.types.Character(1, {"qualifiedName":"sy-langu","conversionExit":"ISOLA"});
68
+ if (INPUT && INPUT.p_langu) {p_langu = INPUT.p_langu;}
69
+ if (INPUT === undefined || INPUT.p_langu === undefined) {p_langu = abap.builtin.sy.get().langu;}
70
+ let p_including_substructres = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
71
+ if (INPUT && INPUT.p_including_substructres) {p_including_substructres = INPUT.p_including_substructres;}
72
+ if (INPUT === undefined || INPUT.p_including_substructres === undefined) {p_including_substructres = abap.builtin.abap_false;}
73
+ let lt_components = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
74
+ let ls_component = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr");
75
+ let ls_return = new abap.types.Structure({"tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "langu": new abap.types.Character(1, {}), "position": new abap.types.Numc({length: 4}), "offset": new abap.types.Numc({length: 6}), "domname": new abap.types.Character(30, {}), "rollname": new abap.types.Character(30, {}), "checktable": new abap.types.Character(1, {}), "leng": new abap.types.Numc({length: 6}), "intlen": new abap.types.Numc({length: 6}), "outputlen": new abap.types.Numc({length: 6}), "decimals": new abap.types.Numc({length: 6}), "datatype": new abap.types.Character(1, {}), "inttype": new abap.types.Character(1, {}), "reftable": new abap.types.Character(1, {}), "reffield": new abap.types.Character(1, {}), "precfield": new abap.types.Character(1, {}), "authorid": new abap.types.Character(1, {}), "memoryid": new abap.types.Character(1, {}), "logflag": new abap.types.Character(1, {}), "mask": new abap.types.Character(1, {}), "masklen": new abap.types.Character(1, {}), "convexit": new abap.types.Character(1, {}), "headlen": new abap.types.Character(1, {}), "scrlen1": new abap.types.Character(1, {}), "scrlen2": new abap.types.Character(1, {}), "scrlen3": new abap.types.Character(1, {}), "fieldtext": new abap.types.Character(1, {}), "reptext": new abap.types.Character(1, {}), "scrtext_s": new abap.types.Character(1, {}), "scrtext_m": new abap.types.Character(1, {}), "scrtext_l": new abap.types.Character(1, {}), "keyflag": new abap.types.Character(1, {}), "lowercase": new abap.types.Character(1, {}), "mac": new abap.types.Character(1, {}), "genkey": new abap.types.Character(1, {}), "noforkey": new abap.types.Character(1, {}), "valexi": new abap.types.Character(1, {}), "noauthch": new abap.types.Character(1, {}), "sign": new abap.types.Character(1, {}), "dynpfld": new abap.types.Character(1, {}), "f4availabl": new abap.types.Character(1, {}), "comptype": new abap.types.Character(1, {}), "outputstyle": new abap.types.Character(1, {}), "lfieldname": new abap.types.Character(132, {})}, "DFIES");
76
+ let lv_name = new abap.types.String({qualifiedName: "STRING"});
77
+ let lv_keyfield = new abap.types.String({qualifiedName: "STRING"});
78
+ let lo_elemdescr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_ELEMDESCR"});
79
+ let fs_component_ = new abap.types.FieldSymbol(new abap.types.Structure({"tabname": new abap.types.Character(30, {}), "fieldname": new abap.types.Character(30, {}), "langu": new abap.types.Character(1, {}), "position": new abap.types.Numc({length: 4}), "offset": new abap.types.Numc({length: 6}), "domname": new abap.types.Character(30, {}), "rollname": new abap.types.Character(30, {}), "checktable": new abap.types.Character(1, {}), "leng": new abap.types.Numc({length: 6}), "intlen": new abap.types.Numc({length: 6}), "outputlen": new abap.types.Numc({length: 6}), "decimals": new abap.types.Numc({length: 6}), "datatype": new abap.types.Character(1, {}), "inttype": new abap.types.Character(1, {}), "reftable": new abap.types.Character(1, {}), "reffield": new abap.types.Character(1, {}), "precfield": new abap.types.Character(1, {}), "authorid": new abap.types.Character(1, {}), "memoryid": new abap.types.Character(1, {}), "logflag": new abap.types.Character(1, {}), "mask": new abap.types.Character(1, {}), "masklen": new abap.types.Character(1, {}), "convexit": new abap.types.Character(1, {}), "headlen": new abap.types.Character(1, {}), "scrlen1": new abap.types.Character(1, {}), "scrlen2": new abap.types.Character(1, {}), "scrlen3": new abap.types.Character(1, {}), "fieldtext": new abap.types.Character(1, {}), "reptext": new abap.types.Character(1, {}), "scrtext_s": new abap.types.Character(1, {}), "scrtext_m": new abap.types.Character(1, {}), "scrtext_l": new abap.types.Character(1, {}), "keyflag": new abap.types.Character(1, {}), "lowercase": new abap.types.Character(1, {}), "mac": new abap.types.Character(1, {}), "genkey": new abap.types.Character(1, {}), "noforkey": new abap.types.Character(1, {}), "valexi": new abap.types.Character(1, {}), "noauthch": new abap.types.Character(1, {}), "sign": new abap.types.Character(1, {}), "dynpfld": new abap.types.Character(1, {}), "f4availabl": new abap.types.Character(1, {}), "comptype": new abap.types.Character(1, {}), "outputstyle": new abap.types.Character(1, {}), "lfieldname": new abap.types.Character(132, {})}, "DFIES"));
80
+ lt_components.set((await this.get_components()));
81
+ abap.statements.assert(abap.compare.cp(this.absolute_name, new abap.types.Character(7).set('+TYPE=*')));
82
+ lv_name.set(this.absolute_name.getOffset({offset: 6}));
83
+ for await (const unique73 of abap.statements.loop(lt_components)) {
84
+ ls_component.set(unique73);
85
+ abap.statements.clear(ls_return);
86
+ ls_return.get().tabname.set(lv_name);
87
+ ls_return.get().fieldname.set(ls_component.get().name);
88
+ if (abap.compare.eq(ls_component.get().type.get().kind, abap.Classes['CL_ABAP_TYPEDESCR'].kind_elem)) {
89
+ await abap.statements.cast(lo_elemdescr, ls_component.get().type);
90
+ ls_return.get().leng.set(lo_elemdescr.get().output_length);
91
+ }
92
+ abap.statements.append({source: ls_return, target: rt_components});
93
+ }
94
+ for (const keyfield of abap.DDIC[lv_name.get()]?.keyFields || [] ) {
95
+ lv_keyfield.set(keyfield);
96
+ abap.statements.readTable(rt_components,{assigning: fs_component_,withKey: (i) => {return abap.compare.eq(i.fieldname, lv_keyfield);}});
97
+ abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0)));
98
+ fs_component_.get().keyflag.set(abap.builtin.abap_true);
99
+ }
100
+ return rt_components;
101
+ }
102
+ async is_ddic_type() {
103
+ let bool = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
104
+ bool.set(this.ddic);
105
+ return bool;
106
+ }
107
+ async construct_from_data(INPUT) {
108
+ return cl_abap_structdescr.construct_from_data(INPUT);
109
+ }
110
+ static async construct_from_data(INPUT) {
111
+ let descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR"});
112
+ let data = new abap.types.Character(4);
113
+ if (INPUT && INPUT.data) {data = INPUT.data;}
114
+ let lv_name = new abap.types.String({qualifiedName: "STRING"});
115
+ let ls_ref = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs");
116
+ let lo_datadescr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"});
117
+ let fs_fs_ = new abap.types.FieldSymbol(new abap.types.Character(4));
118
+ descr.set(await (new abap.Classes['CL_ABAP_STRUCTDESCR']()).constructor_());
119
+ for (const name of Object.keys(INPUT.data.value)) {
120
+ lv_name.set(name.toUpperCase());
121
+ abap.statements.assign({component: lv_name, target: fs_fs_, source: data});
122
+ await abap.statements.cast(lo_datadescr, (await abap.Classes['CL_ABAP_TYPEDESCR'].describe_by_data({p_data: fs_fs_})));
123
+ ls_ref.get().name.set(lv_name);
124
+ ls_ref.get().ref.set(lo_datadescr);
125
+ abap.statements.append({source: ls_ref, target: descr.get().mt_refs});
126
+ }
127
+ await descr.get().update_components();
128
+ return descr;
129
+ }
130
+ async update_components() {
131
+ let ls_component = new abap.types.Structure({"length": new abap.types.Integer({qualifiedName: "LENGTH"}), "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}), "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}), "name": new abap.types.Character(30, {"qualifiedName":"abap_compname"})}, "abap_compdescr");
132
+ let ls_ref = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs");
133
+ abap.statements.clear(this.components);
134
+ for await (const unique74 of abap.statements.loop(this.mt_refs)) {
135
+ ls_ref.set(unique74);
136
+ abap.statements.clear(ls_component);
137
+ ls_component.get().name.set(ls_ref.get().name);
138
+ ls_component.get().type_kind.set(ls_ref.get().ref.get().type_kind);
139
+ abap.statements.append({source: ls_component, target: this.components});
140
+ }
141
+ }
142
+ async get_components() {
143
+ let rt_components = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
144
+ let ls_component = new abap.types.Structure({"length": new abap.types.Integer({qualifiedName: "LENGTH"}), "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}), "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}), "name": new abap.types.Character(30, {"qualifiedName":"abap_compname"})}, "abap_compdescr");
145
+ let ret = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr");
146
+ let ls_ref = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs");
147
+ for await (const unique75 of abap.statements.loop(this.components)) {
148
+ ls_component.set(unique75);
149
+ abap.statements.clear(ret);
150
+ ret.get().name.set(ls_component.get().name);
151
+ abap.statements.readTable(this.mt_refs,{into: ls_ref,withKey: (i) => {return abap.compare.eq(i.name, ls_component.get().name);}});
152
+ if (abap.compare.eq(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0))) {
153
+ ret.get().type.set(ls_ref.get().ref);
154
+ }
155
+ abap.statements.append({source: ret, target: rt_components});
156
+ }
157
+ return rt_components;
158
+ }
159
+ async get_component_type(INPUT) {
160
+ let p_descr_ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"});
161
+ let p_name = new abap.types.Character(4);
162
+ if (INPUT && INPUT.p_name) {p_name = INPUT.p_name;}
163
+ let line = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs");
164
+ abap.statements.readTable(this.mt_refs,{into: line,withKey: (i) => {return abap.compare.eq(i.name, p_name);}});
165
+ if (abap.compare.ne(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0))) {
166
+ throw new abap.ClassicError({classic: "component_not_found"});
167
+ } else {
168
+ p_descr_ref.set(line.get().ref);
169
+ }
170
+ return p_descr_ref;
171
+ }
172
+ }
173
+ abap.Classes['CL_ABAP_STRUCTDESCR'] = cl_abap_structdescr;
174
+ cl_abap_structdescr.component = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr");
175
+ cl_abap_structdescr.component_table = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
176
+ cl_abap_structdescr.included_view = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_component_view_tab");
177
+ cl_abap_structdescr.symbol_table = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "abap_simple_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "abap_component_symbol_tab");
178
+ cl_abap_structdescr.ty_refs = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_STRUCTDESCR=>TY_REFS-NAME"}), "ref": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"})}, "cl_abap_structdescr=>ty_refs");
179
+ export {cl_abap_structdescr};
180
+ //# sourceMappingURL=cl_abap_structdescr.clas.mjs.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [
4
+ "cl_abap_structdescr.clas.abap"
5
+ ],
6
+ "names": [],
7
+ "mappings": ";;;AAqEA;;;;;;;;;;;;EAEE;;IACE,oCAAS,GAAF,iCAAI,wCAAM;IACnB;;EAEA;;;;;;;;;QACO,8VAAsC;QACtC,gOAAiC;IAEtC,iBAAyB,GAAtB,yBAAO,gBAAiB,gCAAC;MAC1B;IACF;;;MAGE,yBAAG,YAAY,MAAC,MAAe;QAC7B;MACF,gCAAO,YAAY,MAAC,MAAe;QACjC;MACF,wBAAmC,GAA5B,0BAAQ,YAAY,MAAC,SAAS,iCAAE;QACrC;MACF;IACF;;;;MAIE,sBAAM,MAAM;MACZ,MAAM,MAAC,UAAO,YAAY,MAAC,KAAI;MAC/B,MAAM,MAAC,SAAO,YAAY,MAAC,KAAI;MAC/B,gCAAO,gBAAU,GAAG,OAAE,OAAO;IAC/B;uCACyB;IAEzB,GAAG,OAAE,cAAY,oCAAgB;IACjC,GAAG,OAAE,SAAO,+BAAW;IACzB;;EAEA;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;IACnB;;EAEA;;;;;;;;QAEO,sgBAAkC;QAClC,8VAAwC;QACxC,6gEAAwC;QACxC,0DAAyB;QACzB,8DAAyB;QACzB,8EAA2C;IAChD,IAAc,aAAsC;IAEpD,mBAAgB,4BAAiB;IAEjC,oCAAqB,GAAd,oBAAiB,2CAAS;IACjC,YAAU,yCAAe;;;MAGvB,sBAAM,SAAS;MACf,SAAS,MAAC,aAAU,OAAO;MAC3B,SAAS,MAAC,eAAY,YAAY,MAAC,KAAI;MACvC,iBAA2B,GAAxB,YAAY,MAAC,KAAI,OAAE,MAAO,kCAAmB,UAAS;mCACvD,cAAgB,YAAY,MAAC,KAAI;QACjC,SAAS,MAAC,UAAO,YAAY,OAAE,aAAa;MAC9C;MAEA,gCAAO,mBAAa,aAAa;IACnC;IAGA;MACA;MAEA,sIAA+E;MAC/E,oCAAgB,GAAT,eAAE,MAAC,QAAQ,gCAAC;MACnB,aAAW,MAAC,aAAU,sBAAS;IAC/B;IAEF;;EAEA;;IACE,SAAO,SAAI;IACb;;EAEA;;;;;;;QAEO,0DAAwB;QACxB,gOAAiC;QACjC,8EAA0C;IAE/C,IAAc,MAAa;;IAK3B;MACA;MACA,wEAAkD;iCAClD,eAAgB,2EAA2C;MAC3D,MAAM,MAAC,UAAO,OAAO;MACrB,MAAM,MAAC,SAAO,YAAY;MAC1B,gCAAO,gBAAU,KAAK,OAAE,OAAO;IAC/B;yCAE2B;IAC7B;;EAEA;QACO,+UAAoC;QACpC,gOAAiC;IAEtC,sBAAM,eAAU;;;MAEd,sBAAM,YAAY;MAClB,YAAY,MAAC,UAAO,MAAM,MAAC,KAAI;MAC/B,YAAY,MAAC,eAAY,MAAM,MAAC,IAAG,OAAE,SAAS;MAC9C,gCAAO,sBAAgB,eAAU;IACnC;EACF;EAEA;;QACO,+UAAoC;QACpC,qVAAuC;QACvC,gOAAiC;;;MAGpC,sBAAM,GAAG;MACT,GAAG,MAAC,UAAO,YAAY,MAAC,KAAI;MAC5B,gIAAgE;MAChE,iBAAY,GAAT,eAAE,MAAC,QAAQ,gCAAC;QACb,GAAG,MAAC,UAAO,MAAM,MAAC,IAAG;MACvB;MAGA,gCAAO,aAAO,aAAa;IAC7B;IACF;;EAEA;;;;QACO,8NAAyB;IAC9B,6GAAmD;IACnD,iBAAY,GAAT,eAAE,MAAC,QAAS,gCAAC;MACd;IACF;MACE,gBAAc,IAAI,MAAC,IAAG;IACxB;IACF;;AAEF",
8
+ "file": "cl_abap_structdescr.clas.mjs",
9
+ "sourceRoot": ""
10
+ }
@@ -0,0 +1,152 @@
1
+ const {cl_abap_datadescr} = await import("./cl_abap_datadescr.clas.mjs");
2
+ const {cx_root} = await import("./cx_root.clas.mjs");
3
+ // cl_abap_tabledescr.clas.abap
4
+ class cl_abap_tabledescr extends cl_abap_datadescr {
5
+ static INTERNAL_TYPE = 'CLAS';
6
+ static IMPLEMENTED_INTERFACES = [];
7
+ async constructor_(INPUT) {
8
+ await super.constructor_(INPUT);
9
+ this.me = new abap.types.ABAPObject();
10
+ this.me.set(this);
11
+ this.has_unique_key = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
12
+ this.key = new abap.types.Table(new abap.types.Structure({"name": new abap.types.Character(255, {"qualifiedName":"abap_keyname"})}, "abap_keydescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_keydescr_tab");
13
+ this.key_defkind = new abap.types.Character(1, {"qualifiedName":"abap_keydefkind"});
14
+ this.table_kind = new abap.types.Character(1, {"qualifiedName":"abap_tablekind"});
15
+ this.mo_line_type = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TYPEDESCR"});
16
+ this.tablekind_any = cl_abap_tabledescr.tablekind_any;
17
+ this.tablekind_std = cl_abap_tabledescr.tablekind_std;
18
+ this.tablekind_index = cl_abap_tabledescr.tablekind_index;
19
+ this.tablekind_hashed = cl_abap_tabledescr.tablekind_hashed;
20
+ this.tablekind_sorted = cl_abap_tabledescr.tablekind_sorted;
21
+ this.keydefkind_default = cl_abap_tabledescr.keydefkind_default;
22
+ this.keydefkind_tableline = cl_abap_tabledescr.keydefkind_tableline;
23
+ this.keydefkind_user = cl_abap_tabledescr.keydefkind_user;
24
+ this.keydefkind_empty = cl_abap_tabledescr.keydefkind_empty;
25
+ return this;
26
+ }
27
+ async create(INPUT) {
28
+ return cl_abap_tabledescr.create(INPUT);
29
+ }
30
+ static async create(INPUT) {
31
+ let ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TABLEDESCR"});
32
+ let p_line_type = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TYPEDESCR"});
33
+ if (INPUT && INPUT.p_line_type) {p_line_type.set(INPUT.p_line_type);}
34
+ let p_table_kind = new abap.types.Character(1, {"qualifiedName":"abap_tablekind"});
35
+ if (INPUT && INPUT.p_table_kind) {p_table_kind = INPUT.p_table_kind;}
36
+ if (INPUT === undefined || INPUT.p_table_kind === undefined) {p_table_kind = this.tablekind_std;}
37
+ let p_unique = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
38
+ if (INPUT && INPUT.p_unique) {p_unique = INPUT.p_unique;}
39
+ if (INPUT === undefined || INPUT.p_unique === undefined) {p_unique = abap.builtin.abap_false;}
40
+ let p_key = new abap.types.Table(new abap.types.Structure({"name": new abap.types.Character(255, {"qualifiedName":"abap_keyname"})}, "abap_keydescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_keydescr_tab");
41
+ if (INPUT && INPUT.p_key) {p_key.set(INPUT.p_key);}
42
+ let p_key_kind = new abap.types.Character(1, {"qualifiedName":"abap_keydefkind"});
43
+ if (INPUT && INPUT.p_key_kind) {p_key_kind = INPUT.p_key_kind;}
44
+ if (INPUT === undefined || INPUT.p_key_kind === undefined) {p_key_kind = this.keydefkind_default;}
45
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
46
+ return ref;
47
+ }
48
+ async get_with_keys(INPUT) {
49
+ return cl_abap_tabledescr.get_with_keys(INPUT);
50
+ }
51
+ static async get_with_keys(INPUT) {
52
+ let p_result = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TABLEDESCR"});
53
+ let p_line_type = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"});
54
+ if (INPUT && INPUT.p_line_type) {p_line_type.set(INPUT.p_line_type);}
55
+ let p_keys = new abap.types.Table(new abap.types.Structure({"components": new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"})}, "abap_table_keycompdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_table_keydescr-components"), "name": new abap.types.String({qualifiedName: "NAME"}), "is_primary": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "access_kind": new abap.types.String({qualifiedName: "ACCESS_KIND"}), "is_unique": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "key_kind": new abap.types.String({qualifiedName: "KEY_KIND"})}, "abap_table_keydescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_table_keydescr_tab");
56
+ if (INPUT && INPUT.p_keys) {p_keys.set(INPUT.p_keys);}
57
+ let ls_key = new abap.types.Structure({"components": new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"})}, "abap_table_keycompdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_table_keydescr-components"), "name": new abap.types.String({qualifiedName: "NAME"}), "is_primary": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "access_kind": new abap.types.String({qualifiedName: "ACCESS_KIND"}), "is_unique": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "key_kind": new abap.types.String({qualifiedName: "KEY_KIND"})}, "abap_table_keydescr");
58
+ if (abap.compare.ne(abap.builtin.lines({val: p_keys}), new abap.types.Integer().set(1))) {
59
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
60
+ }
61
+ abap.statements.readTable(p_keys,{index: new abap.types.Integer().set(1),into: ls_key});
62
+ abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0)));
63
+ p_result.set(await (new abap.Classes['CL_ABAP_TABLEDESCR']()).constructor_());
64
+ p_result.get().has_unique_key.set(ls_key.get().is_unique);
65
+ p_result.get().mo_line_type.set(p_line_type);
66
+ p_result.get().key_defkind.set(ls_key.get().key_kind);
67
+ p_result.get().table_kind.set(ls_key.get().access_kind);
68
+ p_result.get().type_kind.set(cl_abap_tabledescr.typekind_table);
69
+ p_result.get().kind.set(cl_abap_tabledescr.kind_table);
70
+ return p_result;
71
+ }
72
+ async get(INPUT) {
73
+ return cl_abap_tabledescr.get(INPUT);
74
+ }
75
+ static async get(INPUT) {
76
+ let val = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TABLEDESCR"});
77
+ let type = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TYPEDESCR"});
78
+ if (INPUT && INPUT.type) {type.set(INPUT.type);}
79
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
80
+ return val;
81
+ }
82
+ async construct_from_data(INPUT) {
83
+ return cl_abap_tabledescr.construct_from_data(INPUT);
84
+ }
85
+ static async construct_from_data(INPUT) {
86
+ let descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TABLEDESCR"});
87
+ let data = new abap.types.Character(4);
88
+ if (INPUT && INPUT.data) {data = INPUT.data;}
89
+ let lv_dummy = new abap.types.Integer({qualifiedName: "I"});
90
+ let lv_flag = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
91
+ let lv_str = new abap.types.String({qualifiedName: "STRING"});
92
+ let lo_struct = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_STRUCTDESCR"});
93
+ let lt_components = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "abap_component_tab");
94
+ let ls_component = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "NAME"}), "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"}), "as_include": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}), "suffix": new abap.types.String({qualifiedName: "SUFFIX"})}, "abap_componentdescr");
95
+ let ls_key = new abap.types.Structure({"name": new abap.types.Character(255, {"qualifiedName":"abap_keyname"})}, "abap_keydescr");
96
+ descr.set(await (new abap.Classes['CL_ABAP_TABLEDESCR']()).constructor_());
97
+ lv_flag.set(data.getOptions()?.primaryKey?.isUnique === true ? "X" : "");
98
+ descr.get().has_unique_key.set(lv_flag);
99
+ lv_dummy = data.getRowType();
100
+ descr.get().mo_line_type.set((await abap.Classes['CL_ABAP_TYPEDESCR'].describe_by_data({p_data: lv_dummy})));
101
+ lv_flag.set(data.getOptions()?.primaryKey?.keyFields.length > 0 ? "X" : "");
102
+ if (abap.compare.eq(lv_flag, abap.builtin.abap_true)) {
103
+ descr.get().key_defkind.set(cl_abap_tabledescr.keydefkind_user);
104
+ for (const k of data.getOptions()?.primaryKey?.keyFields) {
105
+ lv_str.set(k);
106
+ ls_key.get().name.set(lv_str);
107
+ abap.statements.append({source: ls_key, target: descr.get().key});
108
+ }
109
+ if (abap.compare.eq(abap.builtin.lines({val: descr.get().key}), new abap.types.Integer().set(1)) && abap.compare.eq(ls_key.get().name, new abap.types.Character(10).set('TABLE_LINE'))) {
110
+ descr.get().key_defkind.set(cl_abap_tabledescr.keydefkind_tableline);
111
+ }
112
+ } else {
113
+ descr.get().key_defkind.set(cl_abap_tabledescr.keydefkind_default);
114
+ if (abap.compare.eq(descr.get().mo_line_type.get().kind, cl_abap_tabledescr.kind_struct)) {
115
+ await abap.statements.cast(lo_struct, descr.get().mo_line_type);
116
+ lt_components.set((await lo_struct.get().get_components()));
117
+ for await (const unique76 of abap.statements.loop(lt_components)) {
118
+ ls_component.set(unique76);
119
+ ls_key.get().name.set(ls_component.get().name);
120
+ abap.statements.append({source: ls_key, target: descr.get().key});
121
+ }
122
+ }
123
+ }
124
+ return descr;
125
+ }
126
+ async get_table_line_type() {
127
+ let type = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR"});
128
+ await abap.statements.cast(type, this.mo_line_type);
129
+ return type;
130
+ }
131
+ }
132
+ abap.Classes['CL_ABAP_TABLEDESCR'] = cl_abap_tabledescr;
133
+ cl_abap_tabledescr.tablekind_any = new abap.types.Character(1, {});
134
+ cl_abap_tabledescr.tablekind_any.set('A');
135
+ cl_abap_tabledescr.tablekind_std = new abap.types.Character(1, {});
136
+ cl_abap_tabledescr.tablekind_std.set('S');
137
+ cl_abap_tabledescr.tablekind_index = new abap.types.Character(1, {});
138
+ cl_abap_tabledescr.tablekind_index.set('I');
139
+ cl_abap_tabledescr.tablekind_hashed = new abap.types.Character(1, {});
140
+ cl_abap_tabledescr.tablekind_hashed.set('H');
141
+ cl_abap_tabledescr.tablekind_sorted = new abap.types.Character(1, {});
142
+ cl_abap_tabledescr.tablekind_sorted.set('O');
143
+ cl_abap_tabledescr.keydefkind_default = new abap.types.Character(1, {});
144
+ cl_abap_tabledescr.keydefkind_default.set('D');
145
+ cl_abap_tabledescr.keydefkind_tableline = new abap.types.Character(1, {});
146
+ cl_abap_tabledescr.keydefkind_tableline.set('L');
147
+ cl_abap_tabledescr.keydefkind_user = new abap.types.Character(1, {});
148
+ cl_abap_tabledescr.keydefkind_user.set('U');
149
+ cl_abap_tabledescr.keydefkind_empty = new abap.types.Character(1, {});
150
+ cl_abap_tabledescr.keydefkind_empty.set('E');
151
+ export {cl_abap_tabledescr};
152
+ //# sourceMappingURL=cl_abap_tabledescr.clas.mjs.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [
4
+ "cl_abap_tabledescr.clas.abap"
5
+ ],
6
+ "names": [],
7
+ "mappings": ";;;AAkDA;;;;;;;;;;;;;;;;;;;;;;;EACE;;;;;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;IACnB;;EAEA;;;;;;;;;QACO,yuBAA0B;IAE/B,iBAAmB,GAAhB,yBAAO,UAAY,gCAAC;MACrB,oCAAS,GAAF,iCAAI,wCAAM;IACnB;IACA,sFAAqC;IACrC,oCAAgB,GAAT,eAAE,MAAC,QAAQ,gCAAC;;IAGnB,QAAQ,OAAE,mBAAiB,MAAM,MAAC,UAAS;IAC3C,QAAQ,OAAE,iBAAiB,WAAW;IACtC,QAAQ,OAAE,gBAAiB,MAAM,MAAC,SAAQ;IAC1C,QAAQ,OAAE,eAAiB,MAAM,MAAC,YAAW;IAC7C,QAAQ,OAAE,cAAiB,iCAAc;IACzC,QAAQ,OAAE,SAAiB,6BAAU;IACvC;;EAEA;;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;IACnB;;EAEA;;;;;;;QAEO,uDAAoB;QACpB,2FAA4B;QAC5B,yDAAyB;QACzB,6EAA6C;QAC7C,sgBAAuD;QACvD,8VAAwC;QACxC,6HAA4C;;IAIjD;IACA,KAAK,OAAE,mBAAiB,OAAO;IAE/B;IACA,KAAK,OAAE,kBAAe,6EAA+C;IAErE;IACA,iBAAW,GAAR,SAAU,uBAAS;MACpB,KAAK,OAAE,gBAAc,kCAAe;MAEpC;QACA;QACA,MAAM,MAAC,UAAO,MAAM;QACpB,gCAAO,gBAAU,KAAK,OAAE,GAAG;MAC3B;MAEA,iBAAuB,GAApB,yBAAO,KAAK,OAAE,OAAQ,gCAAE,iBAAgB,GAAZ,MAAM,MAAC,OAAO,+CAAY;QACvD,KAAK,OAAE,gBAAc,uCAAoB;MAC3C;IACF;MAEE,KAAK,OAAE,gBAAc,qCAAkB;MACvC,iBAA6B,GAA1B,KAAK,OAAE,YAAY,OAAE,MAAO,+BAAW;mCACxC,WAAa,KAAK,OAAE,YAAY;QAChC,mBAAgB,uCAA4B;;;UAE1C,MAAM,MAAC,UAAO,YAAY,MAAC,KAAI;UAC/B,gCAAO,gBAAU,KAAK,OAAE,GAAG;QAC7B;MACF;IACF;IAEF;;EAEA;;+BACE,MAAQ,iBAAY;IACtB;;AACF",
8
+ "file": "cl_abap_tabledescr.clas.mjs",
9
+ "sourceRoot": ""
10
+ }
@@ -0,0 +1,99 @@
1
+ const {cx_root} = await import("./cx_root.clas.mjs");
2
+ // cl_abap_tstmp.clas.abap
3
+ class cl_abap_tstmp {
4
+ static INTERNAL_TYPE = 'CLAS';
5
+ static IMPLEMENTED_INTERFACES = [];
6
+ async constructor_(INPUT) {
7
+ this.me = new abap.types.ABAPObject();
8
+ this.me.set(this);
9
+ return this;
10
+ }
11
+ async td_add(INPUT) {
12
+ return cl_abap_tstmp.td_add(INPUT);
13
+ }
14
+ static async td_add(INPUT) {
15
+ let date = new abap.types.Date({qualifiedName: "D"});
16
+ if (INPUT && INPUT.date) {date.set(INPUT.date);}
17
+ let time = new abap.types.Time({qualifiedName: "T"});
18
+ if (INPUT && INPUT.time) {time.set(INPUT.time);}
19
+ let secs = new abap.types.Packed({length: 8, decimals: 0});
20
+ if (INPUT && INPUT.secs) {secs = INPUT.secs;}
21
+ let res_date = new abap.types.Date({qualifiedName: "D"});
22
+ if (INPUT && INPUT.res_date) {res_date = INPUT.res_date;}
23
+ let res_time = new abap.types.Time({qualifiedName: "T"});
24
+ if (INPUT && INPUT.res_time) {res_time = INPUT.res_time;}
25
+ abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
26
+ }
27
+ async move(INPUT) {
28
+ return cl_abap_tstmp.move(INPUT);
29
+ }
30
+ static async move(INPUT) {
31
+ let tstmp_src = new abap.types.Packed({length: 1, decimals: 0});
32
+ if (INPUT && INPUT.tstmp_src) {tstmp_src.set(INPUT.tstmp_src);}
33
+ let tstmp_tgt = new abap.types.Packed({length: 1, decimals: 0});
34
+ if (INPUT && INPUT.tstmp_tgt) {tstmp_tgt = INPUT.tstmp_tgt;}
35
+ tstmp_tgt.set(tstmp_src);
36
+ }
37
+ async systemtstmp_syst2utc(INPUT) {
38
+ return cl_abap_tstmp.systemtstmp_syst2utc(INPUT);
39
+ }
40
+ static async systemtstmp_syst2utc(INPUT) {
41
+ let syst_date = new abap.types.Date({qualifiedName: "D"});
42
+ if (INPUT && INPUT.syst_date) {syst_date.set(INPUT.syst_date);}
43
+ let syst_time = new abap.types.Time({qualifiedName: "T"});
44
+ if (INPUT && INPUT.syst_time) {syst_time.set(INPUT.syst_time);}
45
+ let utc_tstmp = new abap.types.Packed({length: 1, decimals: 0});
46
+ if (INPUT && INPUT.utc_tstmp) {utc_tstmp = INPUT.utc_tstmp;}
47
+ utc_tstmp.set(new abap.types.String().set(`${abap.templateFormatting(syst_date)}${abap.templateFormatting(syst_time)}`));
48
+ }
49
+ async subtract(INPUT) {
50
+ return cl_abap_tstmp.subtract(INPUT);
51
+ }
52
+ static async subtract(INPUT) {
53
+ let r_secs = new abap.types.Integer({qualifiedName: "I"});
54
+ let tstmp1 = new abap.types.Packed({length: 1, decimals: 0});
55
+ if (INPUT && INPUT.tstmp1) {tstmp1.set(INPUT.tstmp1);}
56
+ let tstmp2 = new abap.types.Packed({length: 1, decimals: 0});
57
+ if (INPUT && INPUT.tstmp2) {tstmp2.set(INPUT.tstmp2);}
58
+ let str = new abap.types.String({qualifiedName: "STRING"});
59
+ str.set(new abap.types.String().set(`${abap.templateFormatting(tstmp1,{"timestamp":"iso"})}`));
60
+ let t1 = Date.parse(str.get());
61
+ str.set(new abap.types.String().set(`${abap.templateFormatting(tstmp2,{"timestamp":"iso"})}`));
62
+ let t2 = Date.parse(str.get());
63
+ r_secs.set((t1 - t2)/1000);
64
+ return r_secs;
65
+ }
66
+ async add(INPUT) {
67
+ return cl_abap_tstmp.add(INPUT);
68
+ }
69
+ static async add(INPUT) {
70
+ let time = new abap.types.Packed({length: 15, decimals: 0, qualifiedName: "TIMESTAMP"});
71
+ let tstmp = new abap.types.Packed({length: 1, decimals: 0});
72
+ if (INPUT && INPUT.tstmp) {tstmp.set(INPUT.tstmp);}
73
+ let secs = new abap.types.Integer({qualifiedName: "I"});
74
+ if (INPUT && INPUT.secs) {secs.set(INPUT.secs);}
75
+ let str = new abap.types.String({qualifiedName: "STRING"});
76
+ str.set(new abap.types.String().set(`${abap.templateFormatting(tstmp,{"timestamp":"iso"})}`));
77
+ let t1 = new Date(Date.parse(str.get() + "Z"));
78
+ t1.setSeconds( t1.getSeconds() + secs.get() );
79
+ time.set(t1.toISOString().slice(0, 19).replace(/-/g, "").replace(/:/g, "").replace("T", ""));
80
+ return time;
81
+ }
82
+ async subtractsecs(INPUT) {
83
+ return cl_abap_tstmp.subtractsecs(INPUT);
84
+ }
85
+ static async subtractsecs(INPUT) {
86
+ let time = new abap.types.Packed({length: 15, decimals: 0, qualifiedName: "TIMESTAMP"});
87
+ let tstmp = new abap.types.Packed({length: 1, decimals: 0});
88
+ if (INPUT && INPUT.tstmp) {tstmp.set(INPUT.tstmp);}
89
+ let secs = new abap.types.Integer({qualifiedName: "I"});
90
+ if (INPUT && INPUT.secs) {secs.set(INPUT.secs);}
91
+ let lv_secs = new abap.types.Integer({qualifiedName: "I"});
92
+ lv_secs.set(abap.operators.multiply(secs,new abap.types.Integer().set(-1)));
93
+ time.set((await this.add({tstmp: tstmp, secs: lv_secs})));
94
+ return time;
95
+ }
96
+ }
97
+ abap.Classes['CL_ABAP_TSTMP'] = cl_abap_tstmp;
98
+ export {cl_abap_tstmp};
99
+ //# sourceMappingURL=cl_abap_tstmp.clas.mjs.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [
4
+ "cl_abap_tstmp.clas.abap"
5
+ ],
6
+ "names": [],
7
+ "mappings": ";;AA8CA;;;;;;;;EAEE;;;;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;EACnB;EAEA;;;;;;;;IAEE,cAAY,SAAS;EAEvB;EAEA;;;;;;;;;;IAEE,uHAAwC;EAC1C;EAEA;;;;;;;;;QACO,sDAAe;IACpB,6FAAkC;IAClC;IACA,6FAAkC;IAClC;IACA;IACF;;EAEA;;;;;;;;;QACO,sDAAe;IACpB,4FAAiC;IACjC;IACA;IACA;IACF;;EAEA;;;;;;;;;QACO,sDAAc;IACnB,YAAe,wBAAL,KAAO,iCAAE;IACnB,UAAO,8CAEY;IACrB;;AACF",
8
+ "file": "cl_abap_tstmp.clas.mjs",
9
+ "sourceRoot": ""
10
+ }