@abaplint/transpiler-cli 2.3.112 → 2.3.113
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.
- package/build/bundle.js +9 -2
- package/package.json +2 -2
- package/output/#ui2#cl_json.clas.locals.mjs +0 -207
- package/output/#ui2#cl_json.clas.locals.mjs.map +0 -10
- package/output/#ui2#cl_json.clas.mjs +0 -160
- package/output/#ui2#cl_json.clas.mjs.map +0 -10
- package/output/_init.mjs +0 -8964
- package/output/_top.mjs +0 -2
- package/output/_unit_open.mjs +0 -25
- package/output/abap_boolean.dtel.mjs +0 -6
- package/output/abap_callstack.ttyp.mjs +0 -4
- package/output/abap_callstack_line.tabl.mjs +0 -5
- package/output/abap_encod.dtel.mjs +0 -6
- package/output/balmnr.dtel.mjs +0 -6
- package/output/balognr.dtel.mjs +0 -6
- package/output/bapi_fld.dtel.mjs +0 -6
- package/output/bapi_line.dtel.mjs +0 -6
- package/output/bapi_msg.dtel.mjs +0 -6
- package/output/bapi_mtype.dtel.mjs +0 -6
- package/output/bapi_param.dtel.mjs +0 -6
- package/output/bapi_rcode.dtel.mjs +0 -6
- package/output/bapilogsys.dtel.mjs +0 -6
- package/output/bapioption.dtel.mjs +0 -6
- package/output/bapiret2.tabl.mjs +0 -5
- package/output/bapireturn.tabl.mjs +0 -5
- package/output/bapisign.dtel.mjs +0 -6
- package/output/boolean.dtel.mjs +0 -6
- package/output/char1.dtel.mjs +0 -6
- package/output/char10.dtel.mjs +0 -6
- package/output/char15.dtel.mjs +0 -6
- package/output/char25.dtel.mjs +0 -6
- package/output/char32.dtel.mjs +0 -6
- package/output/char4.dtel.mjs +0 -6
- package/output/cl_abap_char_utilities.clas.mjs +0 -72
- package/output/cl_abap_char_utilities.clas.mjs.map +0 -10
- package/output/cl_abap_classdescr.clas.mjs +0 -31
- package/output/cl_abap_classdescr.clas.mjs.map +0 -10
- package/output/cl_abap_codepage.clas.mjs +0 -54
- package/output/cl_abap_codepage.clas.mjs.map +0 -10
- package/output/cl_abap_complexdescr.clas.mjs +0 -16
- package/output/cl_abap_complexdescr.clas.mjs.map +0 -10
- package/output/cl_abap_conv_codepage.clas.locals.mjs +0 -42
- package/output/cl_abap_conv_codepage.clas.locals.mjs.map +0 -10
- package/output/cl_abap_conv_codepage.clas.mjs +0 -31
- package/output/cl_abap_conv_codepage.clas.mjs.map +0 -10
- package/output/cl_abap_conv_in_ce.clas.mjs +0 -118
- package/output/cl_abap_conv_in_ce.clas.mjs.map +0 -10
- package/output/cl_abap_conv_out_ce.clas.mjs +0 -82
- package/output/cl_abap_conv_out_ce.clas.mjs.map +0 -10
- package/output/cl_abap_datadescr.clas.mjs +0 -35
- package/output/cl_abap_datadescr.clas.mjs.map +0 -10
- package/output/cl_abap_elemdescr.clas.mjs +0 -148
- package/output/cl_abap_elemdescr.clas.mjs.map +0 -10
- package/output/cl_abap_enumdescr.clas.mjs +0 -19
- package/output/cl_abap_enumdescr.clas.mjs.map +0 -10
- package/output/cl_abap_exceptional_values.clas.mjs +0 -65
- package/output/cl_abap_exceptional_values.clas.mjs.map +0 -10
- package/output/cl_abap_format.clas.mjs +0 -26
- package/output/cl_abap_format.clas.mjs.map +0 -10
- package/output/cl_abap_gzip.clas.mjs +0 -87
- package/output/cl_abap_gzip.clas.mjs.map +0 -10
- package/output/cl_abap_hmac.clas.mjs +0 -64
- package/output/cl_abap_hmac.clas.mjs.map +0 -10
- package/output/cl_abap_intfdescr.clas.mjs +0 -16
- package/output/cl_abap_intfdescr.clas.mjs.map +0 -10
- package/output/cl_abap_matcher.clas.mjs +0 -76
- package/output/cl_abap_matcher.clas.mjs.map +0 -10
- package/output/cl_abap_math.clas.mjs +0 -41
- package/output/cl_abap_math.clas.mjs.map +0 -10
- package/output/cl_abap_objectdescr.clas.mjs +0 -76
- package/output/cl_abap_objectdescr.clas.mjs.map +0 -10
- package/output/cl_abap_random.clas.mjs +0 -52
- package/output/cl_abap_random.clas.mjs.map +0 -10
- package/output/cl_abap_random_int.clas.mjs +0 -35
- package/output/cl_abap_random_int.clas.mjs.map +0 -10
- package/output/cl_abap_refdescr.clas.mjs +0 -35
- package/output/cl_abap_refdescr.clas.mjs.map +0 -10
- package/output/cl_abap_regex.clas.mjs +0 -43
- package/output/cl_abap_regex.clas.mjs.map +0 -10
- package/output/cl_abap_structdescr.clas.mjs +0 -180
- package/output/cl_abap_structdescr.clas.mjs.map +0 -10
- package/output/cl_abap_tabledescr.clas.mjs +0 -152
- package/output/cl_abap_tabledescr.clas.mjs.map +0 -10
- package/output/cl_abap_tstmp.clas.mjs +0 -99
- package/output/cl_abap_tstmp.clas.mjs.map +0 -10
- package/output/cl_abap_typedescr.clas.mjs +0 -368
- package/output/cl_abap_typedescr.clas.mjs.map +0 -10
- package/output/cl_abap_unit_assert.clas.locals.mjs +0 -57
- package/output/cl_abap_unit_assert.clas.locals.mjs.map +0 -10
- package/output/cl_abap_unit_assert.clas.mjs +0 -323
- package/output/cl_abap_unit_assert.clas.mjs.map +0 -10
- package/output/cl_abap_zip.clas.locals.mjs +0 -115
- package/output/cl_abap_zip.clas.locals.mjs.map +0 -10
- package/output/cl_abap_zip.clas.mjs +0 -95
- package/output/cl_abap_zip.clas.mjs.map +0 -10
- package/output/cl_apc_tcp_client_manager.clas.locals.mjs +0 -86
- package/output/cl_apc_tcp_client_manager.clas.locals.mjs.map +0 -10
- package/output/cl_apc_tcp_client_manager.clas.mjs +0 -31
- package/output/cl_apc_tcp_client_manager.clas.mjs.map +0 -10
- package/output/cl_apc_wsp_ext_stateless_base.clas.mjs +0 -30
- package/output/cl_apc_wsp_ext_stateless_base.clas.mjs.map +0 -10
- package/output/cl_bcs.clas.mjs +0 -63
- package/output/cl_bcs.clas.mjs.map +0 -10
- package/output/cl_bcs_convert.clas.mjs +0 -34
- package/output/cl_bcs_convert.clas.mjs.map +0 -10
- package/output/cl_cam_address_bcs.clas.mjs +0 -28
- package/output/cl_cam_address_bcs.clas.mjs.map +0 -10
- package/output/cl_demo_output.clas.mjs +0 -40
- package/output/cl_demo_output.clas.mjs.map +0 -10
- package/output/cl_document_bcs.clas.mjs +0 -45
- package/output/cl_document_bcs.clas.mjs.map +0 -10
- package/output/cl_gdt_conversion.clas.mjs +0 -122
- package/output/cl_gdt_conversion.clas.mjs.map +0 -10
- package/output/cl_gui_cfw.clas.mjs +0 -32
- package/output/cl_gui_cfw.clas.mjs.map +0 -10
- package/output/cl_gui_container.clas.mjs +0 -22
- package/output/cl_gui_container.clas.mjs.map +0 -10
- package/output/cl_gui_frontend_services.clas.mjs +0 -273
- package/output/cl_gui_frontend_services.clas.mjs.map +0 -10
- package/output/cl_http_client.clas.mjs +0 -164
- package/output/cl_http_client.clas.mjs.map +0 -10
- package/output/cl_http_entity.clas.mjs +0 -493
- package/output/cl_http_entity.clas.mjs.map +0 -10
- package/output/cl_http_server.clas.mjs +0 -28
- package/output/cl_http_server.clas.mjs.map +0 -10
- package/output/cl_http_utility.clas.mjs +0 -178
- package/output/cl_http_utility.clas.mjs.map +0 -10
- package/output/cl_i18n_languages.clas.mjs +0 -318
- package/output/cl_i18n_languages.clas.mjs.map +0 -10
- package/output/cl_ixml.clas.locals.mjs +0 -1161
- package/output/cl_ixml.clas.locals.mjs.map +0 -10
- package/output/cl_ixml.clas.mjs +0 -62
- package/output/cl_ixml.clas.mjs.map +0 -10
- package/output/cl_message_helper.clas.mjs +0 -81
- package/output/cl_message_helper.clas.mjs.map +0 -10
- package/output/cl_numberrange_runtime.clas.mjs +0 -32
- package/output/cl_numberrange_runtime.clas.mjs.map +0 -10
- package/output/cl_oo_factory.clas.mjs +0 -38
- package/output/cl_oo_factory.clas.mjs.map +0 -10
- package/output/cl_progress_indicator.clas.mjs +0 -30
- package/output/cl_progress_indicator.clas.mjs.map +0 -10
- package/output/cl_salv_aggregations.clas.mjs +0 -14
- package/output/cl_salv_aggregations.clas.mjs.map +0 -10
- package/output/cl_salv_column.clas.mjs +0 -35
- package/output/cl_salv_column.clas.mjs.map +0 -10
- package/output/cl_salv_columns_table.clas.mjs +0 -42
- package/output/cl_salv_columns_table.clas.mjs.map +0 -10
- package/output/cl_salv_events_table.clas.mjs +0 -14
- package/output/cl_salv_events_table.clas.mjs.map +0 -10
- package/output/cl_salv_functions_list.clas.mjs +0 -19
- package/output/cl_salv_functions_list.clas.mjs.map +0 -10
- package/output/cl_salv_table.clas.mjs +0 -122
- package/output/cl_salv_table.clas.mjs.map +0 -10
- package/output/cl_shm_area.clas.mjs +0 -267
- package/output/cl_shm_area.clas.mjs.map +0 -10
- package/output/cl_shm_service.clas.mjs +0 -56
- package/output/cl_shm_service.clas.mjs.map +0 -10
- package/output/cl_sxml_string_reader.clas.locals.mjs +0 -323
- package/output/cl_sxml_string_reader.clas.locals.mjs.map +0 -10
- package/output/cl_sxml_string_reader.clas.mjs +0 -25
- package/output/cl_sxml_string_reader.clas.mjs.map +0 -10
- package/output/cl_sxml_string_writer.clas.mjs +0 -146
- package/output/cl_sxml_string_writer.clas.mjs.map +0 -10
- package/output/cl_system_uuid.clas.mjs +0 -35
- package/output/cl_system_uuid.clas.mjs.map +0 -10
- package/output/cx_abap_message_digest.clas.mjs +0 -16
- package/output/cx_abap_message_digest.clas.mjs.map +0 -10
- package/output/cx_abap_random.clas.mjs +0 -16
- package/output/cx_abap_random.clas.mjs.map +0 -10
- package/output/cx_apc_error.clas.mjs +0 -16
- package/output/cx_apc_error.clas.mjs.map +0 -10
- package/output/cx_bcs.clas.mjs +0 -16
- package/output/cx_bcs.clas.mjs.map +0 -10
- package/output/cx_dynamic_check.clas.mjs +0 -15
- package/output/cx_dynamic_check.clas.mjs.map +0 -10
- package/output/cx_gdt_conversion.clas.mjs +0 -16
- package/output/cx_gdt_conversion.clas.mjs.map +0 -10
- package/output/cx_no_check.clas.mjs +0 -17
- package/output/cx_no_check.clas.mjs.map +0 -10
- package/output/cx_oo_clif_not_exists.clas.mjs +0 -16
- package/output/cx_oo_clif_not_exists.clas.mjs.map +0 -10
- package/output/cx_parameter_invalid.clas.mjs +0 -16
- package/output/cx_parameter_invalid.clas.mjs.map +0 -10
- package/output/cx_parameter_invalid_range.clas.mjs +0 -16
- package/output/cx_parameter_invalid_range.clas.mjs.map +0 -10
- package/output/cx_parameter_invalid_type.clas.mjs +0 -16
- package/output/cx_parameter_invalid_type.clas.mjs.map +0 -10
- package/output/cx_root.clas.mjs +0 -44
- package/output/cx_root.clas.mjs.map +0 -10
- package/output/cx_salv_access_error.clas.mjs +0 -16
- package/output/cx_salv_access_error.clas.mjs.map +0 -10
- package/output/cx_salv_data_error.clas.mjs +0 -16
- package/output/cx_salv_data_error.clas.mjs.map +0 -10
- package/output/cx_salv_error.clas.mjs +0 -16
- package/output/cx_salv_error.clas.mjs.map +0 -10
- package/output/cx_salv_msg.clas.mjs +0 -16
- package/output/cx_salv_msg.clas.mjs.map +0 -10
- package/output/cx_salv_not_found.clas.mjs +0 -16
- package/output/cx_salv_not_found.clas.mjs.map +0 -10
- package/output/cx_salv_static_check.clas.mjs +0 -16
- package/output/cx_salv_static_check.clas.mjs.map +0 -10
- package/output/cx_shm_already_detached.clas.mjs +0 -16
- package/output/cx_shm_already_detached.clas.mjs.map +0 -10
- package/output/cx_shm_attach_error.clas.mjs +0 -16
- package/output/cx_shm_attach_error.clas.mjs.map +0 -10
- package/output/cx_shm_build_failed.clas.mjs +0 -16
- package/output/cx_shm_build_failed.clas.mjs.map +0 -10
- package/output/cx_shm_change_lock_active.clas.mjs +0 -16
- package/output/cx_shm_change_lock_active.clas.mjs.map +0 -10
- package/output/cx_shm_completion_error.clas.mjs +0 -16
- package/output/cx_shm_completion_error.clas.mjs.map +0 -10
- package/output/cx_shm_detach_error.clas.mjs +0 -16
- package/output/cx_shm_detach_error.clas.mjs.map +0 -10
- package/output/cx_shm_error.clas.mjs +0 -16
- package/output/cx_shm_error.clas.mjs.map +0 -10
- package/output/cx_shm_event_execution_failed.clas.mjs +0 -16
- package/output/cx_shm_event_execution_failed.clas.mjs.map +0 -10
- package/output/cx_shm_exclusive_lock_active.clas.mjs +0 -16
- package/output/cx_shm_exclusive_lock_active.clas.mjs.map +0 -10
- package/output/cx_shm_general_error.clas.mjs +0 -16
- package/output/cx_shm_general_error.clas.mjs.map +0 -10
- package/output/cx_shm_inconsistent.clas.mjs +0 -16
- package/output/cx_shm_inconsistent.clas.mjs.map +0 -10
- package/output/cx_shm_initial_reference.clas.mjs +0 -16
- package/output/cx_shm_initial_reference.clas.mjs.map +0 -10
- package/output/cx_shm_no_active_version.clas.mjs +0 -16
- package/output/cx_shm_no_active_version.clas.mjs.map +0 -10
- package/output/cx_shm_parameter_error.clas.mjs +0 -16
- package/output/cx_shm_parameter_error.clas.mjs.map +0 -10
- package/output/cx_shm_pending_lock_removed.clas.mjs +0 -16
- package/output/cx_shm_pending_lock_removed.clas.mjs.map +0 -10
- package/output/cx_shm_read_lock_active.clas.mjs +0 -16
- package/output/cx_shm_read_lock_active.clas.mjs.map +0 -10
- package/output/cx_shm_secondary_commit.clas.mjs +0 -16
- package/output/cx_shm_secondary_commit.clas.mjs.map +0 -10
- package/output/cx_shm_version_limit_exceeded.clas.mjs +0 -16
- package/output/cx_shm_version_limit_exceeded.clas.mjs.map +0 -10
- package/output/cx_shm_wrong_handle.clas.mjs +0 -16
- package/output/cx_shm_wrong_handle.clas.mjs.map +0 -10
- package/output/cx_shma_dynamic.clas.mjs +0 -16
- package/output/cx_shma_dynamic.clas.mjs.map +0 -10
- package/output/cx_shma_inconsistent.clas.mjs +0 -16
- package/output/cx_shma_inconsistent.clas.mjs.map +0 -10
- package/output/cx_shma_not_configured.clas.mjs +0 -16
- package/output/cx_shma_not_configured.clas.mjs.map +0 -10
- package/output/cx_static_check.clas.mjs +0 -27
- package/output/cx_static_check.clas.mjs.map +0 -10
- package/output/cx_sxml_error.clas.mjs +0 -16
- package/output/cx_sxml_error.clas.mjs.map +0 -10
- package/output/cx_sxml_illegal_argument_error.clas.mjs +0 -16
- package/output/cx_sxml_illegal_argument_error.clas.mjs.map +0 -10
- package/output/cx_sxml_name_error.clas.mjs +0 -16
- package/output/cx_sxml_name_error.clas.mjs.map +0 -10
- package/output/cx_sxml_parse_error.clas.mjs +0 -20
- package/output/cx_sxml_parse_error.clas.mjs.map +0 -10
- package/output/cx_sxml_state_error.clas.mjs +0 -16
- package/output/cx_sxml_state_error.clas.mjs.map +0 -10
- package/output/cx_sy_arithmetic_error.clas.mjs +0 -16
- package/output/cx_sy_arithmetic_error.clas.mjs.map +0 -10
- package/output/cx_sy_buffer_overflow.clas.mjs +0 -16
- package/output/cx_sy_buffer_overflow.clas.mjs.map +0 -10
- package/output/cx_sy_codepage_converter_init.clas.mjs +0 -16
- package/output/cx_sy_codepage_converter_init.clas.mjs.map +0 -10
- package/output/cx_sy_compression_error.clas.mjs +0 -16
- package/output/cx_sy_compression_error.clas.mjs.map +0 -10
- package/output/cx_sy_conversion_codepage.clas.mjs +0 -17
- package/output/cx_sy_conversion_codepage.clas.mjs.map +0 -10
- package/output/cx_sy_conversion_data_loss.clas.mjs +0 -16
- package/output/cx_sy_conversion_data_loss.clas.mjs.map +0 -10
- package/output/cx_sy_conversion_error.clas.mjs +0 -16
- package/output/cx_sy_conversion_error.clas.mjs.map +0 -10
- package/output/cx_sy_conversion_no_number.clas.mjs +0 -16
- package/output/cx_sy_conversion_no_number.clas.mjs.map +0 -10
- package/output/cx_sy_conversion_overflow.clas.mjs +0 -16
- package/output/cx_sy_conversion_overflow.clas.mjs.map +0 -10
- package/output/cx_sy_create_data_error.clas.mjs +0 -16
- package/output/cx_sy_create_data_error.clas.mjs.map +0 -10
- package/output/cx_sy_create_object_error.clas.mjs +0 -29
- package/output/cx_sy_create_object_error.clas.mjs.map +0 -10
- package/output/cx_sy_data_access_error.clas.mjs +0 -16
- package/output/cx_sy_data_access_error.clas.mjs.map +0 -10
- package/output/cx_sy_duplicate_key.clas.mjs +0 -16
- package/output/cx_sy_duplicate_key.clas.mjs.map +0 -10
- package/output/cx_sy_dyn_call_error.clas.mjs +0 -16
- package/output/cx_sy_dyn_call_error.clas.mjs.map +0 -10
- package/output/cx_sy_dyn_call_illegal_class.clas.mjs +0 -16
- package/output/cx_sy_dyn_call_illegal_class.clas.mjs.map +0 -10
- package/output/cx_sy_dyn_call_illegal_func.clas.mjs +0 -16
- package/output/cx_sy_dyn_call_illegal_func.clas.mjs.map +0 -10
- package/output/cx_sy_dyn_call_illegal_method.clas.mjs +0 -27
- package/output/cx_sy_dyn_call_illegal_method.clas.mjs.map +0 -10
- package/output/cx_sy_dyn_call_param_not_found.clas.mjs +0 -16
- package/output/cx_sy_dyn_call_param_not_found.clas.mjs.map +0 -10
- package/output/cx_sy_dyn_call_parameter_error.clas.mjs +0 -17
- package/output/cx_sy_dyn_call_parameter_error.clas.mjs.map +0 -10
- package/output/cx_sy_dynamic_osql_error.clas.mjs +0 -18
- package/output/cx_sy_dynamic_osql_error.clas.mjs.map +0 -10
- package/output/cx_sy_dynamic_osql_semantics.clas.mjs +0 -18
- package/output/cx_sy_dynamic_osql_semantics.clas.mjs.map +0 -10
- package/output/cx_sy_itab_duplicate_key.clas.mjs +0 -16
- package/output/cx_sy_itab_duplicate_key.clas.mjs.map +0 -10
- package/output/cx_sy_itab_error.clas.mjs +0 -16
- package/output/cx_sy_itab_error.clas.mjs.map +0 -10
- package/output/cx_sy_itab_line_not_found.clas.mjs +0 -16
- package/output/cx_sy_itab_line_not_found.clas.mjs.map +0 -10
- package/output/cx_sy_message_illegal_text.clas.mjs +0 -16
- package/output/cx_sy_message_illegal_text.clas.mjs.map +0 -10
- package/output/cx_sy_move_cast_error.clas.mjs +0 -16
- package/output/cx_sy_move_cast_error.clas.mjs.map +0 -10
- package/output/cx_sy_open_sql_error.clas.mjs +0 -18
- package/output/cx_sy_open_sql_error.clas.mjs.map +0 -10
- package/output/cx_sy_range_out_of_bounds.clas.mjs +0 -16
- package/output/cx_sy_range_out_of_bounds.clas.mjs.map +0 -10
- package/output/cx_sy_ref_is_initial.clas.mjs +0 -16
- package/output/cx_sy_ref_is_initial.clas.mjs.map +0 -10
- package/output/cx_sy_sql_error.clas.mjs +0 -20
- package/output/cx_sy_sql_error.clas.mjs.map +0 -10
- package/output/cx_sy_strg_par_val.clas.mjs +0 -16
- package/output/cx_sy_strg_par_val.clas.mjs.map +0 -10
- package/output/cx_sy_struct_attributes.clas.mjs +0 -16
- package/output/cx_sy_struct_attributes.clas.mjs.map +0 -10
- package/output/cx_sy_struct_comp_name.clas.mjs +0 -16
- package/output/cx_sy_struct_comp_name.clas.mjs.map +0 -10
- package/output/cx_sy_struct_comp_type.clas.mjs +0 -16
- package/output/cx_sy_struct_comp_type.clas.mjs.map +0 -10
- package/output/cx_sy_struct_creation.clas.mjs +0 -16
- package/output/cx_sy_struct_creation.clas.mjs.map +0 -10
- package/output/cx_sy_type_creation.clas.mjs +0 -16
- package/output/cx_sy_type_creation.clas.mjs.map +0 -10
- package/output/cx_sy_zerodivide.clas.mjs +0 -16
- package/output/cx_sy_zerodivide.clas.mjs.map +0 -10
- package/output/cx_transformation_error.clas.mjs +0 -16
- package/output/cx_transformation_error.clas.mjs.map +0 -10
- package/output/cx_uuid_error.clas.mjs +0 -16
- package/output/cx_uuid_error.clas.mjs.map +0 -10
- package/output/cx_xslt_exception.clas.mjs +0 -16
- package/output/cx_xslt_exception.clas.mjs.map +0 -10
- package/output/cx_xslt_format_error.clas.mjs +0 -16
- package/output/cx_xslt_format_error.clas.mjs.map +0 -10
- package/output/cx_xslt_runtime_error.clas.mjs +0 -16
- package/output/cx_xslt_runtime_error.clas.mjs.map +0 -10
- package/output/cx_xslt_system_error.clas.mjs +0 -16
- package/output/cx_xslt_system_error.clas.mjs.map +0 -10
- package/output/dats.dtel.mjs +0 -6
- package/output/ddfields.ttyp.mjs +0 -4
- package/output/ddoption.dtel.mjs +0 -6
- package/output/ddsign.dtel.mjs +0 -6
- package/output/devclass.dtel.mjs +0 -6
- package/output/dfies.tabl.mjs +0 -5
- package/output/doku_obj.dtel.mjs +0 -6
- package/output/dynprofld.dtel.mjs +0 -6
- package/output/file_table.tabl.mjs +0 -5
- package/output/filetable.ttyp.mjs +0 -4
- package/output/flag.dtel.mjs +0 -6
- package/output/funcname.dtel.mjs +0 -6
- package/output/guid.dtel.mjs +0 -6
- package/output/if_abap_channel_types.intf.mjs +0 -9
- package/output/if_abap_channel_types.intf.mjs.map +0 -8
- package/output/if_abap_conv_in.intf.mjs +0 -8
- package/output/if_abap_conv_in.intf.mjs.map +0 -8
- package/output/if_abap_conv_out.intf.mjs +0 -8
- package/output/if_abap_conv_out.intf.mjs.map +0 -8
- package/output/if_abap_unit_constant.intf.mjs +0 -15
- package/output/if_abap_unit_constant.intf.mjs.map +0 -8
- package/output/if_apc_tcp_frame_types.intf.mjs +0 -14
- package/output/if_apc_tcp_frame_types.intf.mjs.map +0 -8
- package/output/if_apc_wsp_binding_manager.intf.mjs +0 -8
- package/output/if_apc_wsp_binding_manager.intf.mjs.map +0 -8
- package/output/if_apc_wsp_client.intf.mjs +0 -8
- package/output/if_apc_wsp_client.intf.mjs.map +0 -8
- package/output/if_apc_wsp_event_handler.intf.mjs +0 -8
- package/output/if_apc_wsp_event_handler.intf.mjs.map +0 -8
- package/output/if_apc_wsp_extension.intf.mjs +0 -8
- package/output/if_apc_wsp_extension.intf.mjs.map +0 -8
- package/output/if_apc_wsp_initial_request.intf.mjs +0 -8
- package/output/if_apc_wsp_initial_request.intf.mjs.map +0 -8
- package/output/if_apc_wsp_message.intf.mjs +0 -8
- package/output/if_apc_wsp_message.intf.mjs.map +0 -8
- package/output/if_apc_wsp_message_manager.intf.mjs +0 -8
- package/output/if_apc_wsp_message_manager.intf.mjs.map +0 -8
- package/output/if_apc_wsp_server_context.intf.mjs +0 -8
- package/output/if_apc_wsp_server_context.intf.mjs.map +0 -8
- package/output/if_aunit_constants.intf.mjs +0 -27
- package/output/if_aunit_constants.intf.mjs.map +0 -8
- package/output/if_document_bcs.intf.mjs +0 -8
- package/output/if_document_bcs.intf.mjs.map +0 -8
- package/output/if_http_client.intf.mjs +0 -12
- package/output/if_http_client.intf.mjs.map +0 -8
- package/output/if_http_entity.intf.mjs +0 -14
- package/output/if_http_entity.intf.mjs.map +0 -8
- package/output/if_http_extension.intf.mjs +0 -12
- package/output/if_http_extension.intf.mjs.map +0 -8
- package/output/if_http_request.intf.mjs +0 -16
- package/output/if_http_request.intf.mjs.map +0 -8
- package/output/if_http_response.intf.mjs +0 -8
- package/output/if_http_response.intf.mjs.map +0 -8
- package/output/if_http_server.intf.mjs +0 -20
- package/output/if_http_server.intf.mjs.map +0 -8
- package/output/if_http_utility.intf.mjs +0 -8
- package/output/if_http_utility.intf.mjs.map +0 -8
- package/output/if_ixml.intf.mjs +0 -8
- package/output/if_ixml.intf.mjs.map +0 -8
- package/output/if_ixml_attribute.intf.mjs +0 -8
- package/output/if_ixml_attribute.intf.mjs.map +0 -8
- package/output/if_ixml_document.intf.mjs +0 -8
- package/output/if_ixml_document.intf.mjs.map +0 -8
- package/output/if_ixml_element.intf.mjs +0 -8
- package/output/if_ixml_element.intf.mjs.map +0 -8
- package/output/if_ixml_encoding.intf.mjs +0 -10
- package/output/if_ixml_encoding.intf.mjs.map +0 -8
- package/output/if_ixml_istream.intf.mjs +0 -8
- package/output/if_ixml_istream.intf.mjs.map +0 -8
- package/output/if_ixml_named_node_map.intf.mjs +0 -8
- package/output/if_ixml_named_node_map.intf.mjs.map +0 -8
- package/output/if_ixml_node.intf.mjs +0 -12
- package/output/if_ixml_node.intf.mjs.map +0 -8
- package/output/if_ixml_node_iterator.intf.mjs +0 -8
- package/output/if_ixml_node_iterator.intf.mjs.map +0 -8
- package/output/if_ixml_node_list.intf.mjs +0 -8
- package/output/if_ixml_node_list.intf.mjs.map +0 -8
- package/output/if_ixml_ostream.intf.mjs +0 -8
- package/output/if_ixml_ostream.intf.mjs.map +0 -8
- package/output/if_ixml_parse_error.intf.mjs +0 -8
- package/output/if_ixml_parse_error.intf.mjs.map +0 -8
- package/output/if_ixml_parser.intf.mjs +0 -10
- package/output/if_ixml_parser.intf.mjs.map +0 -8
- package/output/if_ixml_renderer.intf.mjs +0 -8
- package/output/if_ixml_renderer.intf.mjs.map +0 -8
- package/output/if_ixml_stream_factory.intf.mjs +0 -8
- package/output/if_ixml_stream_factory.intf.mjs.map +0 -8
- package/output/if_ixml_unknown.intf.mjs +0 -8
- package/output/if_ixml_unknown.intf.mjs.map +0 -8
- package/output/if_message.intf.mjs +0 -8
- package/output/if_message.intf.mjs.map +0 -8
- package/output/if_oo_adt_classrun.intf.mjs +0 -8
- package/output/if_oo_adt_classrun.intf.mjs.map +0 -8
- package/output/if_oo_adt_classrun_out.intf.mjs +0 -8
- package/output/if_oo_adt_classrun_out.intf.mjs.map +0 -8
- package/output/if_oo_clif_source.intf.mjs +0 -8
- package/output/if_oo_clif_source.intf.mjs.map +0 -8
- package/output/if_recipient_bcs.intf.mjs +0 -8
- package/output/if_recipient_bcs.intf.mjs.map +0 -8
- package/output/if_salv_c_bool_sap.intf.mjs +0 -12
- package/output/if_salv_c_bool_sap.intf.mjs.map +0 -8
- package/output/if_salv_c_selection_mode.intf.mjs +0 -18
- package/output/if_salv_c_selection_mode.intf.mjs.map +0 -8
- package/output/if_sender_bcs.intf.mjs +0 -8
- package/output/if_sender_bcs.intf.mjs.map +0 -8
- package/output/if_serializable_object.intf.mjs +0 -8
- package/output/if_serializable_object.intf.mjs.map +0 -8
- package/output/if_shm_build_instance.intf.mjs +0 -8
- package/output/if_shm_build_instance.intf.mjs.map +0 -8
- package/output/if_shm_trace.intf.mjs +0 -8
- package/output/if_shm_trace.intf.mjs.map +0 -8
- package/output/if_sxml.intf.mjs +0 -17
- package/output/if_sxml.intf.mjs.map +0 -8
- package/output/if_sxml_attribute.intf.mjs +0 -9
- package/output/if_sxml_attribute.intf.mjs.map +0 -8
- package/output/if_sxml_close_element.intf.mjs +0 -8
- package/output/if_sxml_close_element.intf.mjs.map +0 -8
- package/output/if_sxml_node.intf.mjs +0 -19
- package/output/if_sxml_node.intf.mjs.map +0 -8
- package/output/if_sxml_open_element.intf.mjs +0 -8
- package/output/if_sxml_open_element.intf.mjs.map +0 -8
- package/output/if_sxml_reader.intf.mjs +0 -8
- package/output/if_sxml_reader.intf.mjs.map +0 -8
- package/output/if_sxml_value.intf.mjs +0 -11
- package/output/if_sxml_value.intf.mjs.map +0 -8
- package/output/if_sxml_value_node.intf.mjs +0 -8
- package/output/if_sxml_value_node.intf.mjs.map +0 -8
- package/output/if_sxml_writer.intf.mjs +0 -26
- package/output/if_sxml_writer.intf.mjs.map +0 -8
- package/output/if_sxmlp_factory.intf.mjs +0 -8
- package/output/if_sxmlp_factory.intf.mjs.map +0 -8
- package/output/if_sxmlp_list.intf.mjs +0 -8
- package/output/if_sxmlp_list.intf.mjs.map +0 -8
- package/output/if_sxmlp_part.intf.mjs +0 -8
- package/output/if_sxmlp_part.intf.mjs.map +0 -8
- package/output/if_sxmlp_simple.intf.mjs +0 -8
- package/output/if_sxmlp_simple.intf.mjs.map +0 -8
- package/output/if_system_uuid_rfc4122_static.intf.mjs +0 -8
- package/output/if_system_uuid_rfc4122_static.intf.mjs.map +0 -8
- package/output/if_system_uuid_static.intf.mjs +0 -8
- package/output/if_system_uuid_static.intf.mjs.map +0 -8
- package/output/if_t100_dyn_msg.intf.mjs +0 -8
- package/output/if_t100_dyn_msg.intf.mjs.map +0 -8
- package/output/if_t100_message.intf.mjs +0 -15
- package/output/if_t100_message.intf.mjs.map +0 -8
- package/output/ihttpnvp.tabl.mjs +0 -5
- package/output/index.mjs +0 -35
- package/output/init.mjs +0 -8965
- package/output/int1.dtel.mjs +0 -6
- package/output/int2.dtel.mjs +0 -6
- package/output/int4.dtel.mjs +0 -6
- package/output/kernel_authority_check.clas.mjs +0 -20
- package/output/kernel_authority_check.clas.mjs.map +0 -10
- package/output/kernel_call.clas.mjs +0 -28
- package/output/kernel_call.clas.mjs.map +0 -10
- package/output/kernel_call_transformation.clas.mjs +0 -182
- package/output/kernel_call_transformation.clas.mjs.map +0 -10
- package/output/kernel_create_data_handle.clas.mjs +0 -121
- package/output/kernel_create_data_handle.clas.mjs.map +0 -10
- package/output/kernel_cx_assert.clas.mjs +0 -33
- package/output/kernel_cx_assert.clas.mjs.map +0 -10
- package/output/kernel_fugr_test.clas.mjs +0 -14
- package/output/kernel_fugr_test.clas.mjs.map +0 -10
- package/output/kernel_ixml_json_to_data.clas.mjs +0 -145
- package/output/kernel_ixml_json_to_data.clas.mjs.map +0 -10
- package/output/kernel_ixml_xml_to_data.clas.mjs +0 -96
- package/output/kernel_ixml_xml_to_data.clas.mjs.map +0 -10
- package/output/kernel_json_to_ixml.clas.mjs +0 -78
- package/output/kernel_json_to_ixml.clas.mjs.map +0 -10
- package/output/kernel_lock.clas.mjs +0 -31
- package/output/kernel_lock.clas.mjs.map +0 -10
- package/output/kernel_numberrange.clas.mjs +0 -38
- package/output/kernel_numberrange.clas.mjs.map +0 -10
- package/output/kernel_push_channels.clas.mjs +0 -20
- package/output/kernel_push_channels.clas.mjs.map +0 -10
- package/output/kernel_scan_abap_source.clas.mjs +0 -212
- package/output/kernel_scan_abap_source.clas.mjs.map +0 -10
- package/output/kernel_unit_runner.clas.mjs +0 -199
- package/output/kernel_unit_runner.clas.mjs.map +0 -10
- package/output/laiso.dtel.mjs +0 -6
- package/output/land1.dtel.mjs +0 -6
- package/output/langu.dtel.mjs +0 -6
- package/output/lvc_nokeyc.dtel.mjs +0 -6
- package/output/mandt.dtel.mjs +0 -6
- package/output/match_result.tabl.mjs +0 -5
- package/output/match_result_tab.ttyp.mjs +0 -4
- package/output/msehi.dtel.mjs +0 -6
- package/output/number_get_next.fugr.number_get_next.mjs +0 -23
- package/output/number_get_next.fugr.number_get_next.mjs.map +0 -8
- package/output/number_get_next.fugr.saplnumber_get_next.mjs +0 -5
- package/output/number_get_next.fugr.saplnumber_get_next.mjs.map +0 -8
- package/output/numc4.dtel.mjs +0 -6
- package/output/openabap.fugr.conversion_exit_alpha_input.mjs +0 -17
- package/output/openabap.fugr.conversion_exit_alpha_input.mjs.map +0 -8
- package/output/openabap.fugr.conversion_exit_alpha_output.mjs +0 -18
- package/output/openabap.fugr.conversion_exit_alpha_output.mjs.map +0 -8
- package/output/openabap.fugr.conversion_exit_isola_input.mjs +0 -20
- package/output/openabap.fugr.conversion_exit_isola_input.mjs.map +0 -8
- package/output/openabap.fugr.conversion_exit_isola_output.mjs +0 -17
- package/output/openabap.fugr.conversion_exit_isola_output.mjs.map +0 -8
- package/output/openabap.fugr.convert_itf_to_stream_text.mjs +0 -21
- package/output/openabap.fugr.convert_itf_to_stream_text.mjs.map +0 -8
- package/output/openabap.fugr.docu_get.mjs +0 -29
- package/output/openabap.fugr.docu_get.mjs.map +0 -8
- package/output/openabap.fugr.generate_sec_random.mjs +0 -19
- package/output/openabap.fugr.generate_sec_random.mjs.map +0 -8
- package/output/openabap.fugr.get_system_timezone.mjs +0 -12
- package/output/openabap.fugr.get_system_timezone.mjs.map +0 -8
- package/output/openabap.fugr.saplzopenabap.mjs +0 -5
- package/output/openabap.fugr.saplzopenabap.mjs.map +0 -8
- package/output/openabap.fugr.system_callstack.mjs +0 -16
- package/output/openabap.fugr.system_callstack.mjs.map +0 -8
- package/output/openabap.fugr.system_installed_languages.mjs +0 -13
- package/output/openabap.fugr.system_installed_languages.mjs.map +0 -8
- package/output/openabap.fugr.text_split.mjs +0 -33
- package/output/openabap.fugr.text_split.mjs.map +0 -8
- package/output/reposrc.tabl.mjs +0 -5
- package/output/rfcdest.dtel.mjs +0 -6
- package/output/scrtext_l.dtel.mjs +0 -6
- package/output/scrtext_m.dtel.mjs +0 -6
- package/output/scrtext_s.dtel.mjs +0 -6
- package/output/scx_attrname.dtel.mjs +0 -6
- package/output/scx_t100key.tabl.mjs +0 -5
- package/output/seoclsname.dtel.mjs +0 -6
- package/output/shm_affect_server.dtel.mjs +0 -6
- package/output/shm_area_name.dtel.mjs +0 -6
- package/output/shm_attach_mode.dtel.mjs +0 -6
- package/output/shm_auto_build_class_name.dtel.mjs +0 -6
- package/output/shm_client.dtel.mjs +0 -6
- package/output/shm_constr_invocation_mode.dtel.mjs +0 -6
- package/output/shm_inst_infos.dtel.mjs +0 -6
- package/output/shm_inst_name.dtel.mjs +0 -6
- package/output/shm_life_context.dtel.mjs +0 -6
- package/output/shm_properties.tabl.mjs +0 -5
- package/output/shm_rc.dtel.mjs +0 -6
- package/output/shma_attributes.tabl.mjs +0 -5
- package/output/shma_client.dtel.mjs +0 -6
- package/output/shmm_trc_variant_name.dtel.mjs +0 -6
- package/output/so_raw255.dtel.mjs +0 -6
- package/output/so_text255.dtel.mjs +0 -6
- package/output/soli.tabl.mjs +0 -5
- package/output/soli_tab.ttyp.mjs +0 -4
- package/output/solix.tabl.mjs +0 -5
- package/output/solix_tab.ttyp.mjs +0 -4
- package/output/sotr_conc.dtel.mjs +0 -6
- package/output/spras.dtel.mjs +0 -6
- package/output/ssfapplssl.dtel.mjs +0 -6
- package/output/sstmnt.tabl.mjs +0 -5
- package/output/sstmnt_tab.ttyp.mjs +0 -4
- package/output/sstruc.tabl.mjs +0 -5
- package/output/sstruc_tab.ttyp.mjs +0 -4
- package/output/stokes.tabl.mjs +0 -5
- package/output/stokes_tab.ttyp.mjs +0 -4
- package/output/stokesx.tabl.mjs +0 -5
- package/output/string_table.ttyp.mjs +0 -4
- package/output/submatch_result.tabl.mjs +0 -5
- package/output/submatch_result_tab.ttyp.mjs +0 -4
- package/output/sydate.dtel.mjs +0 -6
- package/output/symsg.tabl.mjs +0 -5
- package/output/symsgid.dtel.mjs +0 -6
- package/output/symsgno.dtel.mjs +0 -6
- package/output/symsgty.dtel.mjs +0 -6
- package/output/symsgv.dtel.mjs +0 -6
- package/output/syst_host.dtel.mjs +0 -6
- package/output/sysubrc.dtel.mjs +0 -6
- package/output/sysuuid_c36.dtel.mjs +0 -6
- package/output/sysuuid_x16.dtel.mjs +0 -6
- package/output/syuname.dtel.mjs +0 -6
- package/output/t000.tabl.mjs +0 -5
- package/output/t100.tabl.mjs +0 -5
- package/output/tabfdpos.dtel.mjs +0 -6
- package/output/tabname.dtel.mjs +0 -6
- package/output/tadir.tabl.mjs +0 -5
- package/output/tdevc.tabl.mjs +0 -5
- package/output/tdline.dtel.mjs +0 -6
- package/output/text20.dtel.mjs +0 -6
- package/output/text200.dtel.mjs +0 -6
- package/output/text255.dtel.mjs +0 -6
- package/output/text30.dtel.mjs +0 -6
- package/output/text80.dtel.mjs +0 -6
- package/output/textpool.tabl.mjs +0 -5
- package/output/tfdir.tabl.mjs +0 -5
- package/output/tihttpnvp.ttyp.mjs +0 -4
- package/output/timestamp.dtel.mjs +0 -6
- package/output/timestampl.dtel.mjs +0 -6
- package/output/timezone.dtel.mjs +0 -6
- package/output/tline.tabl.mjs +0 -5
- package/output/tline_tab.ttyp.mjs +0 -4
- package/output/trfunction.dtel.mjs +0 -6
- package/output/trkorr.dtel.mjs +0 -6
- package/output/tzntstmpl.dtel.mjs +0 -6
- package/output/uname.dtel.mjs +0 -6
- package/output/w3mime.tabl.mjs +0 -5
- package/output/wwwdatatab.tabl.mjs +0 -5
- package/output/wwwparams.tabl.mjs +0 -5
- package/output/xfeld.dtel.mjs +0 -6
- package/output/xsdboolean.dtel.mjs +0 -6
- package/output/xsdtime_t.dtel.mjs +0 -6
- package/output/zw3mi.fugr.saplzw3mi.mjs +0 -5
- package/output/zw3mi.fugr.saplzw3mi.mjs.map +0 -8
- package/output/zw3mi.fugr.wwwdata_export.mjs +0 -14
- package/output/zw3mi.fugr.wwwdata_export.mjs.map +0 -8
- package/output/zw3mi.fugr.wwwdata_import.mjs +0 -14
- package/output/zw3mi.fugr.wwwdata_import.mjs.map +0 -8
- package/output/zw3mi.fugr.wwwparams_insert.mjs +0 -12
- package/output/zw3mi.fugr.wwwparams_insert.mjs.map +0 -8
- package/output/zw3mi.fugr.wwwparams_read.mjs +0 -27
- package/output/zw3mi.fugr.wwwparams_read.mjs.map +0 -8
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
await import("./cl_abap_unit_assert.clas.locals.mjs");
|
|
2
|
-
const {cx_root} = await import("./cx_root.clas.mjs");
|
|
3
|
-
// cl_abap_unit_assert.clas.abap
|
|
4
|
-
class cl_abap_unit_assert {
|
|
5
|
-
static INTERNAL_TYPE = 'CLAS';
|
|
6
|
-
static IMPLEMENTED_INTERFACES = [];
|
|
7
|
-
async constructor_(INPUT) {
|
|
8
|
-
this.me = new abap.types.ABAPObject();
|
|
9
|
-
this.me.set(this);
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
async abort(INPUT) {
|
|
13
|
-
return cl_abap_unit_assert.abort(INPUT);
|
|
14
|
-
}
|
|
15
|
-
static async abort(INPUT) {
|
|
16
|
-
let msg = new abap.types.Character();
|
|
17
|
-
if (INPUT && INPUT.msg) {msg = INPUT.msg;}
|
|
18
|
-
let detail = new abap.types.Character();
|
|
19
|
-
if (INPUT && INPUT.detail) {detail = INPUT.detail;}
|
|
20
|
-
let quit = new abap.types.Integer({qualifiedName: "INT1"});
|
|
21
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
22
|
-
if (INPUT === undefined || INPUT.quit === undefined) {quit = new abap.types.Integer().set(2);}
|
|
23
|
-
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
24
|
-
}
|
|
25
|
-
async assert_bound(INPUT) {
|
|
26
|
-
return cl_abap_unit_assert.assert_bound(INPUT);
|
|
27
|
-
}
|
|
28
|
-
static async assert_bound(INPUT) {
|
|
29
|
-
let act = new abap.types.Character(4);
|
|
30
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
31
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
32
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
33
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
34
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
35
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
36
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
37
|
-
if (abap.compare.initial(act)) {
|
|
38
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected value to be bound`)});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
async assert_not_bound(INPUT) {
|
|
42
|
-
return cl_abap_unit_assert.assert_not_bound(INPUT);
|
|
43
|
-
}
|
|
44
|
-
static async assert_not_bound(INPUT) {
|
|
45
|
-
let act = new abap.types.Character(4);
|
|
46
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
47
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
48
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
49
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
50
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
51
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
52
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
53
|
-
if (abap.compare.initial(act) === false) {
|
|
54
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected value to not be bound`)});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
async assert_char_cp(INPUT) {
|
|
58
|
-
return cl_abap_unit_assert.assert_char_cp(INPUT);
|
|
59
|
-
}
|
|
60
|
-
static async assert_char_cp(INPUT) {
|
|
61
|
-
let act = new abap.types.Character();
|
|
62
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
63
|
-
let exp = new abap.types.Character();
|
|
64
|
-
if (INPUT && INPUT.exp) {exp = INPUT.exp;}
|
|
65
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
66
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
67
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
68
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
69
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
70
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
71
|
-
if (abap.compare.np(act, exp)) {
|
|
72
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({expected: exp, actual: act, msg: msg});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
async assert_char_np(INPUT) {
|
|
76
|
-
return cl_abap_unit_assert.assert_char_np(INPUT);
|
|
77
|
-
}
|
|
78
|
-
static async assert_char_np(INPUT) {
|
|
79
|
-
let act = new abap.types.Character();
|
|
80
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
81
|
-
let exp = new abap.types.Character();
|
|
82
|
-
if (INPUT && INPUT.exp) {exp = INPUT.exp;}
|
|
83
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
84
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
85
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
86
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
87
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
88
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
89
|
-
if (abap.compare.cp(act, exp)) {
|
|
90
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Actual: ${abap.templateFormatting(act)}`)});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
async fail(INPUT) {
|
|
94
|
-
return cl_abap_unit_assert.fail(INPUT);
|
|
95
|
-
}
|
|
96
|
-
static async fail(INPUT) {
|
|
97
|
-
let msg = new abap.types.Character();
|
|
98
|
-
if (INPUT && INPUT.msg) {msg = INPUT.msg;}
|
|
99
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
100
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
101
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
102
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
103
|
-
let detail = new abap.types.Character();
|
|
104
|
-
if (INPUT && INPUT.detail) {detail = INPUT.detail;}
|
|
105
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: msg});
|
|
106
|
-
}
|
|
107
|
-
async skip(INPUT) {
|
|
108
|
-
return cl_abap_unit_assert.skip(INPUT);
|
|
109
|
-
}
|
|
110
|
-
static async skip(INPUT) {
|
|
111
|
-
let msg = new abap.types.Character();
|
|
112
|
-
if (INPUT && INPUT.msg) {msg = INPUT.msg;}
|
|
113
|
-
let detail = new abap.types.Character();
|
|
114
|
-
if (INPUT && INPUT.detail) {detail = INPUT.detail;}
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
async assert_differs(INPUT) {
|
|
118
|
-
return cl_abap_unit_assert.assert_differs(INPUT);
|
|
119
|
-
}
|
|
120
|
-
static async assert_differs(INPUT) {
|
|
121
|
-
let act = new abap.types.Character(4);
|
|
122
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
123
|
-
let exp = new abap.types.Character(4);
|
|
124
|
-
if (INPUT && INPUT.exp) {exp = INPUT.exp;}
|
|
125
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
126
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
127
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
128
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
129
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
130
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
131
|
-
try {
|
|
132
|
-
await this.assert_equals({act: act, exp: exp});
|
|
133
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected different values`), act: act, exp: exp});
|
|
134
|
-
} catch (e) {
|
|
135
|
-
if (e instanceof abap.Classes['KERNEL_CX_ASSERT']) {
|
|
136
|
-
return;
|
|
137
|
-
} else {
|
|
138
|
-
throw e;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
async assert_true(INPUT) {
|
|
143
|
-
return cl_abap_unit_assert.assert_true(INPUT);
|
|
144
|
-
}
|
|
145
|
-
static async assert_true(INPUT) {
|
|
146
|
-
let act = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
147
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
148
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
149
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
150
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
151
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
152
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
153
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
154
|
-
if (abap.compare.ne(act, abap.builtin.abap_true)) {
|
|
155
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected abap_true`)});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
async assert_false(INPUT) {
|
|
159
|
-
return cl_abap_unit_assert.assert_false(INPUT);
|
|
160
|
-
}
|
|
161
|
-
static async assert_false(INPUT) {
|
|
162
|
-
let act = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
163
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
164
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
165
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
166
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
167
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
168
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
169
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
170
|
-
if (abap.compare.ne(act, abap.builtin.abap_false)) {
|
|
171
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected abap_false`)});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
async assert_equals(INPUT) {
|
|
175
|
-
return cl_abap_unit_assert.assert_equals(INPUT);
|
|
176
|
-
}
|
|
177
|
-
static async assert_equals(INPUT) {
|
|
178
|
-
let act = new abap.types.Character(4);
|
|
179
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
180
|
-
let exp = new abap.types.Character(4);
|
|
181
|
-
if (INPUT && INPUT.exp) {exp = INPUT.exp;}
|
|
182
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
183
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
184
|
-
let tol = new abap.types.Float({qualifiedName: "F"});
|
|
185
|
-
if (INPUT && INPUT.tol) {tol.set(INPUT.tol);}
|
|
186
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
187
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
188
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
189
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
190
|
-
let type1 = new abap.types.Character(1, {});
|
|
191
|
-
let type2 = new abap.types.Character(1, {});
|
|
192
|
-
let index = new abap.types.Integer({qualifiedName: "I"});
|
|
193
|
-
let diff = new abap.types.Float({qualifiedName: "F"});
|
|
194
|
-
let lv_exp = new abap.types.String({qualifiedName: "STRING"});
|
|
195
|
-
let lv_act = new abap.types.String({qualifiedName: "STRING"});
|
|
196
|
-
let lv_msg = new abap.types.String({qualifiedName: "STRING"});
|
|
197
|
-
let fs_tab1_ = new abap.types.FieldSymbol(new abap.types.Table(new abap.types.Character(4), {"withHeader":false}));
|
|
198
|
-
let fs_row1_ = new abap.types.FieldSymbol(new abap.types.Character(4));
|
|
199
|
-
let fs_tab2_ = new abap.types.FieldSymbol(new abap.types.Table(new abap.types.Character(4), {"withHeader":false}));
|
|
200
|
-
let fs_row2_ = new abap.types.FieldSymbol(new abap.types.Character(4));
|
|
201
|
-
abap.statements.describe({field: act, type: type1});
|
|
202
|
-
abap.statements.describe({field: exp, type: type2});
|
|
203
|
-
if (abap.compare.ca(type1, new abap.types.Character(10).set('CgyIFPDTXN'))) {
|
|
204
|
-
if (abap.compare.initial(type2) === false) {
|
|
205
|
-
if (abap.compare.na(type2, new abap.types.Character(10).set('CgyIFPDTXN'))) {
|
|
206
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Unexpected types`)});
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
} else if (abap.compare.initial(type1) === false && abap.compare.initial(type2) === false) {
|
|
210
|
-
if (abap.compare.ne(type1, type2)) {
|
|
211
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Unexpected types`)});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
if (abap.compare.eq(type1, new abap.types.Character(1).set('h'))) {
|
|
215
|
-
if (abap.compare.ne(abap.builtin.lines({val: act}), abap.builtin.lines({val: exp}))) {
|
|
216
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected table to contain ${abap.templateFormatting(abap.builtin.lines({val: exp}))} rows, got ${abap.templateFormatting(abap.builtin.lines({val: act}))}`)});
|
|
217
|
-
}
|
|
218
|
-
abap.statements.assign({target: fs_tab1_, source: act});
|
|
219
|
-
abap.statements.assign({target: fs_tab2_, source: exp});
|
|
220
|
-
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
221
|
-
const unique92 = abap.builtin.lines({val: act}).get();
|
|
222
|
-
for (let unique93 = 0; unique93 < unique92; unique93++) {
|
|
223
|
-
abap.builtin.sy.get().index.set(unique93 + 1);
|
|
224
|
-
index.set(abap.builtin.sy.get().index);
|
|
225
|
-
abap.statements.readTable(fs_tab1_,{index: index,assigning: fs_row1_});
|
|
226
|
-
await this.assert_subrc();
|
|
227
|
-
abap.statements.readTable(fs_tab2_,{index: index,assigning: fs_row2_});
|
|
228
|
-
await this.assert_subrc();
|
|
229
|
-
await this.assert_equals({act: fs_row1_, exp: fs_row2_});
|
|
230
|
-
}
|
|
231
|
-
abap.builtin.sy.get().index.set(indexBackup1);
|
|
232
|
-
} else if (INPUT && INPUT.tol) {
|
|
233
|
-
diff.set(abap.operators.minus(exp,act));
|
|
234
|
-
if (abap.compare.ge(diff, tol)) {
|
|
235
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_();
|
|
236
|
-
}
|
|
237
|
-
} else if (abap.compare.ne(act, exp)) {
|
|
238
|
-
lv_act.set((await abap.Classes['CLAS-CL_ABAP_UNIT_ASSERT-LCL_DUMP'].to_string({iv_val: act})));
|
|
239
|
-
lv_exp.set((await abap.Classes['CLAS-CL_ABAP_UNIT_ASSERT-LCL_DUMP'].to_string({iv_val: exp})));
|
|
240
|
-
if (abap.compare.ne(msg, new abap.types.Character(0).set(''))) {
|
|
241
|
-
lv_msg.set(msg);
|
|
242
|
-
} else {
|
|
243
|
-
lv_msg.set(new abap.types.String().set(`Expected '${abap.templateFormatting(lv_exp)}', got '${abap.templateFormatting(lv_act)}'`));
|
|
244
|
-
}
|
|
245
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: lv_msg, actual: lv_act, expected: lv_exp});
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
async assert_not_initial(INPUT) {
|
|
249
|
-
return cl_abap_unit_assert.assert_not_initial(INPUT);
|
|
250
|
-
}
|
|
251
|
-
static async assert_not_initial(INPUT) {
|
|
252
|
-
let act = new abap.types.Character(4);
|
|
253
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
254
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
255
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
256
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
257
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
258
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
259
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
260
|
-
if (abap.compare.initial(act)) {
|
|
261
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected non initial value`)});
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
async assert_initial(INPUT) {
|
|
265
|
-
return cl_abap_unit_assert.assert_initial(INPUT);
|
|
266
|
-
}
|
|
267
|
-
static async assert_initial(INPUT) {
|
|
268
|
-
let act = new abap.types.Character(4);
|
|
269
|
-
if (INPUT && INPUT.act) {act = INPUT.act;}
|
|
270
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
271
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
272
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
273
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
274
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
275
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
276
|
-
if (abap.compare.initial(act) === false) {
|
|
277
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected initial value`)});
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
async assert_subrc(INPUT) {
|
|
281
|
-
return cl_abap_unit_assert.assert_subrc(INPUT);
|
|
282
|
-
}
|
|
283
|
-
static async assert_subrc(INPUT) {
|
|
284
|
-
let exp = new abap.types.Integer({qualifiedName: "I"});
|
|
285
|
-
if (INPUT && INPUT.exp) {exp.set(INPUT.exp);}
|
|
286
|
-
if (INPUT === undefined || INPUT.exp === undefined) {exp = new abap.types.Integer().set(0);}
|
|
287
|
-
let act = new abap.types.Integer({qualifiedName: "I"});
|
|
288
|
-
if (INPUT && INPUT.act) {act.set(INPUT.act);}
|
|
289
|
-
if (INPUT === undefined || INPUT.act === undefined) {act = abap.builtin.sy.get().subrc;}
|
|
290
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
291
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
292
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
293
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
294
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
295
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
296
|
-
if (abap.compare.ne(act, exp)) {
|
|
297
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_({msg: new abap.types.String().set(`Expected sy-subrc to equal ${abap.templateFormatting(exp)}, got ${abap.templateFormatting(act)}`)});
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
async assert_number_between(INPUT) {
|
|
301
|
-
return cl_abap_unit_assert.assert_number_between(INPUT);
|
|
302
|
-
}
|
|
303
|
-
static async assert_number_between(INPUT) {
|
|
304
|
-
let lower = new abap.types.Integer({qualifiedName: "I"});
|
|
305
|
-
if (INPUT && INPUT.lower) {lower.set(INPUT.lower);}
|
|
306
|
-
let upper = new abap.types.Integer({qualifiedName: "I"});
|
|
307
|
-
if (INPUT && INPUT.upper) {upper.set(INPUT.upper);}
|
|
308
|
-
let number = new abap.types.Integer({qualifiedName: "I"});
|
|
309
|
-
if (INPUT && INPUT.number) {number.set(INPUT.number);}
|
|
310
|
-
let msg = new abap.types.String({qualifiedName: "STRING"});
|
|
311
|
-
if (INPUT && INPUT.msg) {msg.set(INPUT.msg);}
|
|
312
|
-
let quit = new abap.types.Integer({qualifiedName: "I"});
|
|
313
|
-
if (INPUT && INPUT.quit) {quit.set(INPUT.quit);}
|
|
314
|
-
let level = new abap.types.Integer({qualifiedName: "I"});
|
|
315
|
-
if (INPUT && INPUT.level) {level.set(INPUT.level);}
|
|
316
|
-
if (abap.compare.lt(number, lower) || abap.compare.gt(number, upper)) {
|
|
317
|
-
throw await (new abap.Classes['KERNEL_CX_ASSERT']()).constructor_();
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
abap.Classes['CL_ABAP_UNIT_ASSERT'] = cl_abap_unit_assert;
|
|
322
|
-
export {cl_abap_unit_assert};
|
|
323
|
-
//# sourceMappingURL=cl_abap_unit_assert.clas.mjs.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"cl_abap_unit_assert.clas.abap"
|
|
5
|
-
],
|
|
6
|
-
"names": [],
|
|
7
|
-
"mappings": ";;;AAkIA;;;;;;;;EAEE;;;;;;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;EACnB;EAEA;;;;;;;;;;;;IACE,yBAAG,IAAgB;MACjB;IAGF;EACF;EAEA;;;;;;;;;;;;IACE,yBAAG,cAAY;MACb;IAGF;EACF;EAEA;;;;;;;;;;;;;;IACE,iBAAO,GAAJ,KAAO,IAAG;MACX;IAKF;EACF;EAEA;;;;;;;;;;;;;;IACE,iBAAO,GAAJ,KAAO,IAAG;MACX;IAGF;EACF;EAEA;;;;;;;;;;;;IACE;EAGF;EAEA;;;;;;;;IACE;EACF;EAEA;;;;;;;;;;;;;;IACE;oDAGiB;MACb;;;;;;;IAOJ;EACF;EAEA;;;;;;;;;;;;IACE,iBAAO,GAAJ,KAAO,uBAAS;MACjB;IAGF;EACF;EAEA;;;;;;;;;;;;IACE,iBAAO,GAAJ,KAAO,wBAAU;MAClB;IAGF;EACF;EAEA;;;;;;;;;;;;;;;;QACO,uCAAsB;QACtB,uCAAsB;QACtB,oDAAa;QACb,iDAAa;QACb,yDAAkB;QAClB,yDAAkB;QAClB,yDAAkB;IAEvB,IAAc,QAAuB;IACrC,IAAc,QAAe;IAC7B,IAAc,QAAuB;IACrC,IAAc,QAAe;IAE7B,iDAA6B;IAC7B,iDAA6B;IAG7B,iBAAS,GAAN,OAAS,+CAAY;MACtB,yBAAG,gBAAoB;QACrB,iBAAS,GAAN,OAAS,+CAAY;UACtB;QAGF;MACF;IACF,gCAAO,gBAAqB,yBAAI,gBAAoB;MAElD,iBAAS,GAAN,OAAS,MAAK;QACf;MAGF;IACF;IAEA,iBAAS,GAAN,OAAQ,qCAAG;MACZ,iBAAgB,GAAb,yBAAO,OAAS,yBAAO,MAAK;QAC7B;MAGF;MACA,qDAAoB;MACpB,qDAAoB;;;;;QAElB,UAAQ,eAAE,MAAC,MAAK;QAChB,qEAA8C;iCAC/B;QACf,qEAA8C;iCAC/B;gEAEc;MAC/B;;IACF,6BAAsB;MACpB,SAAW,qBAAJ,IAAM,IAAG;MAGhB,iBAAQ,GAAL,MAAQ,IAAG;QACZ;MACF;IACF,wBAAW,GAAJ,KAAO,IAAG;MACf,YAAS,iFAA0B;MACnC,YAAS,iFAA0B;MACnC,iBAAO,GAAJ,KAAO,oCAAE;QACV,WAAS,GAAG;MACd;QACE,iIAAkD;MACpD;MACA;IAKF;EACF;EAEA;;;;;;;;;;;;IACE,yBAAG,IAAc;MACf;IAGF;EACF;EAEA;;;;;;;;;;;;IACE,yBAAG,cAAkB;MACnB;IAGF;EACF;EAEA;;;;;;;;;;;;;;;;IACE,iBAAO,GAAJ,KAAO,IAAG;MACX;IAGF;EACF;EAEA;;;;;;;;;;;;;;;;IACE,iBAAU,GAAP,QAAS,MAAM,iBAAU,GAAP,QAAS,MAAK;MACjC;IACF;EACF;AAEF",
|
|
8
|
-
"file": "cl_abap_unit_assert.clas.mjs",
|
|
9
|
-
"sourceRoot": ""
|
|
10
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
const {cx_root} = await import("./cx_root.clas.mjs");
|
|
2
|
-
// cl_abap_zip.clas.locals_imp.abap
|
|
3
|
-
class lcl_stream {
|
|
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_xstr = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
async append(INPUT) {
|
|
13
|
-
let iv_xstr = new abap.types.Hex();
|
|
14
|
-
if (INPUT && INPUT.iv_xstr) {iv_xstr = INPUT.iv_xstr;}
|
|
15
|
-
abap.statements.concatenate({source: [this.mv_xstr, iv_xstr], target: this.mv_xstr});
|
|
16
|
-
}
|
|
17
|
-
async get() {
|
|
18
|
-
let rv_xstr = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
19
|
-
rv_xstr.set(this.mv_xstr);
|
|
20
|
-
return rv_xstr;
|
|
21
|
-
}
|
|
22
|
-
async append_date(INPUT) {
|
|
23
|
-
let iv_date = new abap.types.Date({qualifiedName: "D"});
|
|
24
|
-
if (INPUT && INPUT.iv_date) {iv_date.set(INPUT.iv_date);}
|
|
25
|
-
}
|
|
26
|
-
async append_time(INPUT) {
|
|
27
|
-
let iv_time = new abap.types.Time({qualifiedName: "T"});
|
|
28
|
-
if (INPUT && INPUT.iv_time) {iv_time.set(INPUT.iv_time);}
|
|
29
|
-
}
|
|
30
|
-
async append_int2(INPUT) {
|
|
31
|
-
let iv_int = new abap.types.Integer({qualifiedName: "I"});
|
|
32
|
-
if (INPUT && INPUT.iv_int) {iv_int.set(INPUT.iv_int);}
|
|
33
|
-
let lv_hex = new abap.types.Hex();
|
|
34
|
-
lv_hex.set(iv_int);
|
|
35
|
-
await this.append({iv_xstr: lv_hex});
|
|
36
|
-
}
|
|
37
|
-
async append_int4(INPUT) {
|
|
38
|
-
let iv_int = new abap.types.Integer({qualifiedName: "I"});
|
|
39
|
-
if (INPUT && INPUT.iv_int) {iv_int.set(INPUT.iv_int);}
|
|
40
|
-
let lv_hex = new abap.types.Hex({length: 2});
|
|
41
|
-
lv_hex.set(iv_int);
|
|
42
|
-
await this.append({iv_xstr: lv_hex});
|
|
43
|
-
}
|
|
44
|
-
async append_crc(INPUT) {
|
|
45
|
-
let rv_crc = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
46
|
-
let iv_xstring = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
47
|
-
if (INPUT && INPUT.iv_xstring) {iv_xstring.set(INPUT.iv_xstring);}
|
|
48
|
-
let magic_nr = new abap.types.Hex({length: 4});
|
|
49
|
-
magic_nr.set('EDB88320');
|
|
50
|
-
let mffffffff = new abap.types.Hex({length: 4});
|
|
51
|
-
mffffffff.set('FFFFFFFF');
|
|
52
|
-
let m7fffffff = new abap.types.Hex({length: 4});
|
|
53
|
-
m7fffffff.set('7FFFFFFF');
|
|
54
|
-
let m00ffffff = new abap.types.Hex({length: 4});
|
|
55
|
-
m00ffffff.set('00FFFFFF');
|
|
56
|
-
let m000000ff = new abap.types.Hex({length: 4});
|
|
57
|
-
m000000ff.set('000000FF');
|
|
58
|
-
let m000000 = new abap.types.Hex({length: 3});
|
|
59
|
-
m000000.set('000000');
|
|
60
|
-
let cindex = new abap.types.Hex({length: 4});
|
|
61
|
-
let low_bit = new abap.types.Hex({length: 4});
|
|
62
|
-
let len = new abap.types.Integer({qualifiedName: "I"});
|
|
63
|
-
let nindex = new abap.types.Integer({qualifiedName: "I"});
|
|
64
|
-
let crc = new abap.types.Hex({length: 4});
|
|
65
|
-
crc.set(mffffffff);
|
|
66
|
-
let x4 = new abap.types.Hex({length: 4});
|
|
67
|
-
let idx = new abap.types.Hex({length: 4});
|
|
68
|
-
if (abap.compare.eq(abap.builtin.xstrlen({val: lcl_stream.crc32_map}), new abap.types.Integer().set(0))) {
|
|
69
|
-
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
70
|
-
const unique3 = new abap.types.Integer().set(256).get();
|
|
71
|
-
for (let unique4 = 0; unique4 < unique3; unique4++) {
|
|
72
|
-
abap.builtin.sy.get().index.set(unique4 + 1);
|
|
73
|
-
cindex.set(abap.operators.minus(abap.builtin.sy.get().index,new abap.types.Integer().set(1)));
|
|
74
|
-
const indexBackup2 = abap.builtin.sy.get().index.get();
|
|
75
|
-
const unique5 = new abap.types.Integer().set(8).get();
|
|
76
|
-
for (let unique6 = 0; unique6 < unique5; unique6++) {
|
|
77
|
-
abap.builtin.sy.get().index.set(unique6 + 1);
|
|
78
|
-
low_bit.set(new abap.types.Character(8).set('00000001'));
|
|
79
|
-
low_bit.set(abap.operators.bitand(cindex,low_bit));
|
|
80
|
-
cindex.set(abap.operators.div(cindex,new abap.types.Integer().set(2)));
|
|
81
|
-
cindex.set(abap.operators.bitand(cindex,m7fffffff));
|
|
82
|
-
if (abap.compare.initial(low_bit) === false) {
|
|
83
|
-
cindex.set(abap.operators.bitxor(cindex,magic_nr));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
abap.builtin.sy.get().index.set(indexBackup2);
|
|
87
|
-
abap.statements.concatenate({source: [lcl_stream.crc32_map, cindex], target: lcl_stream.crc32_map});
|
|
88
|
-
}
|
|
89
|
-
abap.builtin.sy.get().index.set(indexBackup1);
|
|
90
|
-
}
|
|
91
|
-
len.set(abap.builtin.xstrlen({val: iv_xstring}));
|
|
92
|
-
const indexBackup3 = abap.builtin.sy.get().index.get();
|
|
93
|
-
const unique7 = len.get();
|
|
94
|
-
for (let unique8 = 0; unique8 < unique7; unique8++) {
|
|
95
|
-
abap.builtin.sy.get().index.set(unique8 + 1);
|
|
96
|
-
nindex.set(abap.operators.minus(abap.builtin.sy.get().index,new abap.types.Integer().set(1)));
|
|
97
|
-
abap.statements.concatenate({source: [m000000, iv_xstring.getOffset({offset: nindex, length: 1})], target: idx});
|
|
98
|
-
idx.set(abap.operators.bitand(abap.operators.bitxor(crc,idx),m000000ff));
|
|
99
|
-
idx.set(abap.operators.multiply(idx,new abap.types.Integer().set(4)));
|
|
100
|
-
x4.set(lcl_stream.crc32_map.getOffset({offset: idx, length: 4}));
|
|
101
|
-
crc.set(abap.operators.div(crc,new abap.types.Integer().set(256)));
|
|
102
|
-
crc.set(abap.operators.bitand(crc,m00ffffff));
|
|
103
|
-
crc.set(abap.operators.bitxor(x4,crc));
|
|
104
|
-
}
|
|
105
|
-
abap.builtin.sy.get().index.set(indexBackup3);
|
|
106
|
-
crc.set(abap.operators.bitxor(crc,mffffffff));
|
|
107
|
-
rv_crc.set(crc);
|
|
108
|
-
await this.append({iv_xstr: rv_crc});
|
|
109
|
-
return rv_crc;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
abap.Classes['CLAS-CL_ABAP_ZIP-LCL_STREAM'] = lcl_stream;
|
|
113
|
-
lcl_stream.crc32_map = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
114
|
-
export {lcl_stream};
|
|
115
|
-
//# sourceMappingURL=cl_abap_zip.clas.locals.mjs.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"cl_abap_zip.clas.locals_imp.abap"
|
|
5
|
-
],
|
|
6
|
-
"names": [],
|
|
7
|
-
"mappings": ";;AAgBA;;;;;;;;;EACE;;;IACE,sCAAY,cAAQ,kBAAa,YAAoB;EACvD;EAEA;;IACE,YAAU,YAAO;IACnB;;EAEA;;;EAEA;EAEA;;;EAEA;EAEA;;;QACO,6BAAsB;IAC3B,WAAS,MAAM;wCACC;EAClB;EAEA;;;QACO,wCAAsB;IAC3B,WAAS,MAAM;wCACC;EAClB;EAEA;;;;QAGa,0CAA0C,CAAA;;QAC1C,2CAA0C,CAAA;;QAC1C,2CAA0C,CAAA;;QAC1C,2CAA0C,CAAA;;QAC1C,2CAA0C,CAAA;;QAC1C,yCAAwC,CAAA;;QAE7C,wCAAuB;QACvB,yCAAuB;QACvB,kDAAc;QACd,qDAAc;QACd,qCAAuC,CAAA;;QACvC,oCAAuB;QACvB,qCAAuB;IAE7B,iBAAwB,GAArB,2BAAS,wBAAc,gCAAC;;;;;QAEvB,WAAkB,qBAAT,eAAE,MAAC,OAAQ,gCAAC;;;;;UAEnB,YAAU,2CAAU;UACpB,YAAiB,sBAAP,OAAe,QAAO;UAChC,WAAgB,mBAAP,OAAW,gCAAC;UACrB,WAAgB,sBAAP,OAAe,UAAS;UACjC,yBAAG,kBAAsB;YACvB,WAAgB,sBAAP,OAAe,SAAQ;UAClC;QACF;;QACA,sCAAY,sBAAU,iBAAY,oBAAsB;MAC1D;;IACF;IAEA,QAAM,2BAAS,YAAY;;;;;MAEzB,WAAkB,qBAAT,eAAE,MAAC,OAAQ,gCAAC;MACrB,sCAAY,SAAQ,4DAA0B,GAAgB;MAC9D,QAA0B,sBAAd,sBAAJ,IAAY,KAAc,UAAS;MAC3C,QAAU,wBAAJ,IAAM,gCAAC;MACb,OAAM,wDAAgB;MACtB,QAAU,mBAAJ,IAAQ,kCAAG;MACjB,QAAU,sBAAJ,IAAY,UAAS;MAC3B,QAAS,sBAAH,GAAW,IAAG;IACtB;;IACA,QAAU,sBAAJ,IAAY,UAAS;IAE3B,WAAS,GAAG;wCAEI;IAElB;;AAEF",
|
|
8
|
-
"file": "cl_abap_zip.clas.locals.mjs",
|
|
9
|
-
"sourceRoot": ""
|
|
10
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
await import("./cl_abap_zip.clas.locals.mjs");
|
|
2
|
-
const {cx_root} = await import("./cx_root.clas.mjs");
|
|
3
|
-
// cl_abap_zip.clas.abap
|
|
4
|
-
class cl_abap_zip {
|
|
5
|
-
static INTERNAL_TYPE = 'CLAS';
|
|
6
|
-
static IMPLEMENTED_INTERFACES = [];
|
|
7
|
-
async constructor_(INPUT) {
|
|
8
|
-
this.me = new abap.types.ABAPObject();
|
|
9
|
-
this.me.set(this);
|
|
10
|
-
this.files = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>T_FILE-NAME"}), "size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>T_FILE-SIZE"})}, "cl_abap_zip=>t_file"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "cl_abap_zip=>t_files");
|
|
11
|
-
this.mt_contents = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-NAME"}), "original_size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-ORIGINAL_SIZE"}), "content": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-CONTENT"}), "compressed": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-COMPRESSED"})}, "cl_abap_zip=>ty_contents"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
|
|
12
|
-
return this;
|
|
13
|
-
}
|
|
14
|
-
async crc32(INPUT) {
|
|
15
|
-
return cl_abap_zip.crc32(INPUT);
|
|
16
|
-
}
|
|
17
|
-
static async crc32(INPUT) {
|
|
18
|
-
let crc = new abap.types.Integer({qualifiedName: "I"});
|
|
19
|
-
let content = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
20
|
-
if (INPUT && INPUT.content) {content.set(INPUT.content);}
|
|
21
|
-
let lo_stream = new abap.types.ABAPObject({qualifiedName: "LCL_STREAM"});
|
|
22
|
-
lo_stream.set(await (new abap.Classes['CLAS-CL_ABAP_ZIP-LCL_STREAM']()).constructor_());
|
|
23
|
-
crc.set((await lo_stream.get().append_crc({iv_xstring: content})));
|
|
24
|
-
return crc;
|
|
25
|
-
}
|
|
26
|
-
async delete(INPUT) {
|
|
27
|
-
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
28
|
-
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
29
|
-
let index = new abap.types.Integer({qualifiedName: "I"});
|
|
30
|
-
if (INPUT && INPUT.index) {index.set(INPUT.index);}
|
|
31
|
-
if (INPUT === undefined || INPUT.index === undefined) {index = new abap.types.Integer().set(0);}
|
|
32
|
-
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
33
|
-
}
|
|
34
|
-
async get(INPUT) {
|
|
35
|
-
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
36
|
-
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
37
|
-
let content = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
38
|
-
if (INPUT && INPUT.content) {content = INPUT.content;}
|
|
39
|
-
let ls_length = new abap.types.Integer({qualifiedName: "I"});
|
|
40
|
-
let ls_contents = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-NAME"}), "original_size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-ORIGINAL_SIZE"}), "content": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-CONTENT"}), "compressed": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-COMPRESSED"})}, "cl_abap_zip=>ty_contents");
|
|
41
|
-
abap.statements.readTable(this.mt_contents,{into: ls_contents,withKey: (i) => {return abap.compare.eq(i.name, name);}});
|
|
42
|
-
await abap.Classes['CL_ABAP_GZIP'].decompress_binary({gzip_in: ls_contents.get().compressed, raw_out: content, raw_out_len: ls_length});
|
|
43
|
-
}
|
|
44
|
-
async add(INPUT) {
|
|
45
|
-
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
46
|
-
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
47
|
-
let content = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
48
|
-
if (INPUT && INPUT.content) {content.set(INPUT.content);}
|
|
49
|
-
let ls_contents = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-NAME"}), "original_size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-ORIGINAL_SIZE"}), "content": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-CONTENT"}), "compressed": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-COMPRESSED"})}, "cl_abap_zip=>ty_contents");
|
|
50
|
-
ls_contents.get().name.set(name);
|
|
51
|
-
ls_contents.get().original_size.set(abap.builtin.xstrlen({val: content}));
|
|
52
|
-
ls_contents.get().content.set(content);
|
|
53
|
-
await abap.Classes['CL_ABAP_GZIP'].compress_binary({raw_in: content, gzip_out: ls_contents.get().compressed});
|
|
54
|
-
abap.statements.insertInternal({data: ls_contents, table: this.mt_contents});
|
|
55
|
-
}
|
|
56
|
-
async load(INPUT) {
|
|
57
|
-
let zip = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
58
|
-
if (INPUT && INPUT.zip) {zip.set(INPUT.zip);}
|
|
59
|
-
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
60
|
-
}
|
|
61
|
-
async save() {
|
|
62
|
-
let val = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
63
|
-
let lo_stream = new abap.types.ABAPObject({qualifiedName: "LCL_STREAM"});
|
|
64
|
-
let ls_contents = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-NAME"}), "original_size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-ORIGINAL_SIZE"}), "content": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-CONTENT"}), "compressed": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-COMPRESSED"})}, "cl_abap_zip=>ty_contents");
|
|
65
|
-
let lv_buffer = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
66
|
-
let lo_conv = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_CONV_OUT_CE"});
|
|
67
|
-
lo_stream.set(await (new abap.Classes['CLAS-CL_ABAP_ZIP-LCL_STREAM']()).constructor_());
|
|
68
|
-
lo_conv.set((await abap.Classes['CL_ABAP_CONV_OUT_CE'].create()));
|
|
69
|
-
for await (const unique9 of abap.statements.loop(this.mt_contents)) {
|
|
70
|
-
ls_contents.set(unique9);
|
|
71
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(8).set('504B0304')});
|
|
72
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(4).set('1400')});
|
|
73
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(4).set('0000')});
|
|
74
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(4).set('0800')});
|
|
75
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(4).set('0000')});
|
|
76
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(4).set('0000')});
|
|
77
|
-
await lo_stream.get().append_crc({iv_xstring: ls_contents.get().content});
|
|
78
|
-
await lo_stream.get().append_int4({iv_int: abap.builtin.xstrlen({val: ls_contents.get().compressed})});
|
|
79
|
-
await lo_stream.get().append_int4({iv_int: abap.builtin.xstrlen({val: ls_contents.get().content})});
|
|
80
|
-
await lo_stream.get().append_int2({iv_int: abap.builtin.strlen({val: ls_contents.get().name})});
|
|
81
|
-
await lo_stream.get().append({iv_xstr: new abap.types.Character(4).set('0000')});
|
|
82
|
-
await lo_conv.get().convert({data: ls_contents.get().name, buffer: lv_buffer});
|
|
83
|
-
await lo_stream.get().append({iv_xstr: lv_buffer});
|
|
84
|
-
await lo_stream.get().append({iv_xstr: ls_contents.get().compressed});
|
|
85
|
-
}
|
|
86
|
-
val.set((await lo_stream.get().get()));
|
|
87
|
-
return val;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
abap.Classes['CL_ABAP_ZIP'] = cl_abap_zip;
|
|
91
|
-
cl_abap_zip.t_file = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>T_FILE-NAME"}), "size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>T_FILE-SIZE"})}, "cl_abap_zip=>t_file");
|
|
92
|
-
cl_abap_zip.t_files = new abap.types.Table(new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>T_FILE-NAME"}), "size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>T_FILE-SIZE"})}, "cl_abap_zip=>t_file"), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "cl_abap_zip=>t_files");
|
|
93
|
-
cl_abap_zip.ty_contents = new abap.types.Structure({"name": new abap.types.String({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-NAME"}), "original_size": new abap.types.Integer({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-ORIGINAL_SIZE"}), "content": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-CONTENT"}), "compressed": new abap.types.XString({qualifiedName: "CL_ABAP_ZIP=>TY_CONTENTS-COMPRESSED"})}, "cl_abap_zip=>ty_contents");
|
|
94
|
-
export {cl_abap_zip};
|
|
95
|
-
//# sourceMappingURL=cl_abap_zip.clas.mjs.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"cl_abap_zip.clas.abap"
|
|
5
|
-
],
|
|
6
|
-
"names": [],
|
|
7
|
-
"mappings": ";;;AA8CA;;;;;;;;;;EAEE;;;;;;;QACO,oEAAgC;;IAErC,SAAM,wDAAgC;IACxC;;EAEA;;;;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;EACnB;EAEA;;;;;QAEI,wDAAgB;QAChB,+aAAoC;IACtC,sHAA4D;2IAIrB;EACzC;EAEA;;;;;QACO,+aAAoC;IACzC,WAAW,MAAC,UAAO,IAAI;IACvB,WAAW,MAAC,mBAAgB,2BAAS,SAAS;IAC9C,WAAW,MAAC,aAAU,OAAO;iHAKU;IACvC,0EAAyC;EAC3C;EAEA;;;IACE,oCAAS,GAAF,iCAAI,wCAAM;EACnB;EAEA;;QAGO,oEAAgC;QAChC,+aAAoC;QACpC,8DAAsB;QACtB,2EAAuC;;IAG5C,aAAU,mDAA8B;;;0FAIP;sFAEJ;sFAEA;sFAEA;sFAEA;sFAEA;+EAEiB;4GAEe;yGAEH;qGAEJ;sFAEzB;oFAGqB;wDAClB;2EAIa;IAC7C;IAEA,SAAM,4BAAiB;IACzB;;AAEF",
|
|
8
|
-
"file": "cl_abap_zip.clas.mjs",
|
|
9
|
-
"sourceRoot": ""
|
|
10
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
const {cx_root} = await import("./cx_root.clas.mjs");
|
|
2
|
-
// cl_apc_tcp_client_manager.clas.locals_imp.abap
|
|
3
|
-
class lcl_message {
|
|
4
|
-
static INTERNAL_TYPE = 'CLAS';
|
|
5
|
-
static IMPLEMENTED_INTERFACES = ["IF_APC_WSP_MESSAGE"];
|
|
6
|
-
async constructor_(INPUT) {
|
|
7
|
-
this.me = new abap.types.ABAPObject();
|
|
8
|
-
this.me.set(this);
|
|
9
|
-
this.mv_data = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
10
|
-
return this;
|
|
11
|
-
}
|
|
12
|
-
async if_apc_wsp_message$get_binary() {
|
|
13
|
-
let rv_binary = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
14
|
-
rv_binary.set(this.mv_data);
|
|
15
|
-
return rv_binary;
|
|
16
|
-
}
|
|
17
|
-
async if_apc_wsp_message$get_text() {
|
|
18
|
-
let r_message = new abap.types.String({qualifiedName: "STRING"});
|
|
19
|
-
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
20
|
-
return r_message;
|
|
21
|
-
}
|
|
22
|
-
async if_apc_wsp_message$set_binary(INPUT) {
|
|
23
|
-
let iv_binary = new abap.types.Hex();
|
|
24
|
-
if (INPUT && INPUT.iv_binary) {iv_binary = INPUT.iv_binary;}
|
|
25
|
-
this.mv_data.set(iv_binary);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
abap.Classes['CLAS-CL_APC_TCP_CLIENT_MANAGER-LCL_MESSAGE'] = lcl_message;
|
|
29
|
-
class lcl_client {
|
|
30
|
-
static INTERNAL_TYPE = 'CLAS';
|
|
31
|
-
static IMPLEMENTED_INTERFACES = ["IF_APC_WSP_CLIENT","IF_APC_WSP_MESSAGE_MANAGER"];
|
|
32
|
-
async constructor_(INPUT) {
|
|
33
|
-
this.me = new abap.types.ABAPObject();
|
|
34
|
-
this.me.set(this);
|
|
35
|
-
this.mv_host = new abap.types.String({qualifiedName: "STRING"});
|
|
36
|
-
this.mv_port = new abap.types.Integer({qualifiedName: "I"});
|
|
37
|
-
this.mo_handler = new abap.types.ABAPObject({qualifiedName: "IF_APC_WSP_EVENT_HANDLER"});
|
|
38
|
-
let iv_host = new abap.types.String({qualifiedName: "STRING"});
|
|
39
|
-
if (INPUT && INPUT.iv_host) {iv_host.set(INPUT.iv_host);}
|
|
40
|
-
let iv_port = new abap.types.Integer({qualifiedName: "I"});
|
|
41
|
-
if (INPUT && INPUT.iv_port) {iv_port.set(INPUT.iv_port);}
|
|
42
|
-
let io_handler = new abap.types.ABAPObject({qualifiedName: "IF_APC_WSP_EVENT_HANDLER"});
|
|
43
|
-
if (INPUT && INPUT.io_handler) {io_handler.set(INPUT.io_handler);}
|
|
44
|
-
abap.statements.assert(abap.compare.initial(iv_host) === false);
|
|
45
|
-
abap.statements.assert(abap.compare.initial(iv_port) === false);
|
|
46
|
-
abap.statements.assert(abap.compare.initial(io_handler) === false);
|
|
47
|
-
this.mv_host.set(iv_host);
|
|
48
|
-
this.mv_port.set(iv_port);
|
|
49
|
-
this.mo_handler.set(io_handler);
|
|
50
|
-
return this;
|
|
51
|
-
}
|
|
52
|
-
async if_apc_wsp_client$connect() {
|
|
53
|
-
const net = await import("net");
|
|
54
|
-
this.client = net.createConnection({ port: this.mv_port.get(), host: this.mv_host.get()}, () => {this.mo_handler.get().if_apc_wsp_event_handler$on_open();});
|
|
55
|
-
this.client.on("data", async (data) => {
|
|
56
|
-
const msg = await (new lcl_message().constructor_());
|
|
57
|
-
await msg.if_apc_wsp_message$set_binary({iv_binary: data.toString("hex").toUpperCase()});
|
|
58
|
-
await this.mo_handler.get().if_apc_wsp_event_handler$on_message({i_message: msg});
|
|
59
|
-
});
|
|
60
|
-
this.client.on("end", async () => {this.mo_handler.get().if_apc_wsp_event_handler$on_close();});
|
|
61
|
-
this.client.on("error", async (e) => {this.mo_handler.get().if_apc_wsp_event_handler$on_error();});
|
|
62
|
-
await new Promise(resolve => this.client.once("connect", resolve));
|
|
63
|
-
}
|
|
64
|
-
async if_apc_wsp_client$close() {
|
|
65
|
-
this.client.destroy();
|
|
66
|
-
}
|
|
67
|
-
async if_apc_wsp_client$get_message_manager() {
|
|
68
|
-
let ri_manager = new abap.types.ABAPObject({qualifiedName: "IF_APC_WSP_MESSAGE_MANAGER"});
|
|
69
|
-
ri_manager.set(this.me);
|
|
70
|
-
return ri_manager;
|
|
71
|
-
}
|
|
72
|
-
async if_apc_wsp_message_manager$create_message() {
|
|
73
|
-
let ri_message = new abap.types.ABAPObject({qualifiedName: "IF_APC_WSP_MESSAGE"});
|
|
74
|
-
ri_message.set(await (new abap.Classes['CLAS-CL_APC_TCP_CLIENT_MANAGER-LCL_MESSAGE']()).constructor_());
|
|
75
|
-
return ri_message;
|
|
76
|
-
}
|
|
77
|
-
async if_apc_wsp_message_manager$send(INPUT) {
|
|
78
|
-
let ii_message = new abap.types.ABAPObject({qualifiedName: "IF_APC_WSP_MESSAGE"});
|
|
79
|
-
if (INPUT && INPUT.ii_message) {ii_message.set(INPUT.ii_message);}
|
|
80
|
-
const val = await ii_message.get().if_apc_wsp_message$get_binary();
|
|
81
|
-
this.client.write(Buffer.from(val.get(), "hex"), "binary");
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
abap.Classes['CLAS-CL_APC_TCP_CLIENT_MANAGER-LCL_CLIENT'] = lcl_client;
|
|
85
|
-
export {lcl_message, lcl_client};
|
|
86
|
-
//# sourceMappingURL=cl_apc_tcp_client_manager.clas.locals.mjs.map
|