All files / output zcl_abapgit_frontend_no_gui.clas.mjs

29.45% Statements 43/146
83.33% Branches 5/6
20% Functions 4/20
29.45% Lines 43/146

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 1461x 1x 1x 1x 1x 1x 1x 1x 1x 13x 13x 13x 13x 13x 13x 1x 13x 13x 13x 1x           1x               1x             1x             1x                                     1x               1x             1x       1x           1x       1x         1x         1x         1x 21x 21x 21x 21x 1x   1x                         1x                         1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_frontend_no_gui.clas.abap
class zcl_abapgit_frontend_no_gui {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_FRONTEND_NO_GUI';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_FRONTEND_SERVICES"];
  static ATTRIBUTES = {};
  static METHODS = {};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async zif_abapgit_frontend_services$clipboard_export(INPUT) {
    let iv_no_auth_check = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.iv_no_auth_check) {iv_no_auth_check.set(INPUT.iv_no_auth_check);}
    if (INPUT === undefined || INPUT.iv_no_auth_check === undefined) {iv_no_auth_check = abap.builtin.abap_false;}
    let it_data = INPUT?.it_data;
  }
  async zif_abapgit_frontend_services$directory_browse(INPUT) {
    let iv_window_title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_window_title) {iv_window_title.set(INPUT.iv_window_title);}
    let iv_initial_folder = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_initial_folder) {iv_initial_folder.set(INPUT.iv_initial_folder);}
    let cv_selected_folder = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.cv_selected_folder) {cv_selected_folder = INPUT.cv_selected_folder;}
  }
  async zif_abapgit_frontend_services$directory_create(INPUT) {
    let iv_directory = INPUT?.iv_directory;
    if (iv_directory?.getQualifiedName === undefined || iv_directory.getQualifiedName() !== "STRING") { iv_directory = undefined; }
    if (iv_directory === undefined) { iv_directory = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_directory); }
    let cv_rc = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.cv_rc) {cv_rc = INPUT.cv_rc;}
  }
  async zif_abapgit_frontend_services$directory_exist(INPUT) {
    let rv_exists = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let iv_directory = INPUT?.iv_directory;
    if (iv_directory?.getQualifiedName === undefined || iv_directory.getQualifiedName() !== "STRING") { iv_directory = undefined; }
    if (iv_directory === undefined) { iv_directory = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_directory); }
    return rv_exists;
  }
  async zif_abapgit_frontend_services$execute(INPUT) {
    let iv_document = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_document) {iv_document.set(INPUT.iv_document);}
    let iv_application = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_application) {iv_application.set(INPUT.iv_application);}
    let iv_parameter = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_parameter) {iv_parameter.set(INPUT.iv_parameter);}
    let iv_default_directory = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_default_directory) {iv_default_directory.set(INPUT.iv_default_directory);}
    let iv_maximized = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_maximized) {iv_maximized.set(INPUT.iv_maximized);}
    let iv_minimized = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_minimized) {iv_minimized.set(INPUT.iv_minimized);}
    let iv_synchronous = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_synchronous) {iv_synchronous.set(INPUT.iv_synchronous);}
    let iv_operation = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_operation) {iv_operation.set(INPUT.iv_operation);}
    if (INPUT === undefined || INPUT.iv_operation === undefined) {iv_operation = abap.CharacterFactory.get(4, 'OPEN');}
  }
  async zif_abapgit_frontend_services$file_download(INPUT) {
    let iv_path = INPUT?.iv_path;
    if (iv_path?.getQualifiedName === undefined || iv_path.getQualifiedName() !== "STRING") { iv_path = undefined; }
    if (iv_path === undefined) { iv_path = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_path); }
    let iv_xstr = INPUT?.iv_xstr;
    if (iv_xstr?.getQualifiedName === undefined || iv_xstr.getQualifiedName() !== "XSTRING") { iv_xstr = undefined; }
    if (iv_xstr === undefined) { iv_xstr = new abap.types.XString({qualifiedName: "XSTRING"}).set(INPUT.iv_xstr); }
  }
  async zif_abapgit_frontend_services$file_upload(INPUT) {
    let rv_xstr = new abap.types.XString({qualifiedName: "XSTRING"});
    let iv_path = INPUT?.iv_path;
    if (iv_path?.getQualifiedName === undefined || iv_path.getQualifiedName() !== "STRING") { iv_path = undefined; }
    if (iv_path === undefined) { iv_path = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_path); }
    return rv_xstr;
  }
  async zif_abapgit_frontend_services$get_file_separator(INPUT) {
    let cv_file_separator = new abap.types.Character(1, {"qualifiedName":"zif_abapgit_frontend_services=>ty_char1"});
    if (INPUT && INPUT.cv_file_separator) {cv_file_separator = INPUT.cv_file_separator;}
  }
  async zif_abapgit_frontend_services$get_gui_version(INPUT) {
    let ev_gui_release = INPUT?.ev_gui_release || new abap.types.Numc({length: 4, qualifiedName: "zif_abapgit_frontend_services=>ty_gui_release"});
    let ev_gui_sp = INPUT?.ev_gui_sp || new abap.types.Numc({length: 2, qualifiedName: "zif_abapgit_frontend_services=>ty_gui_sp"});
    let ev_gui_patch = INPUT?.ev_gui_patch || new abap.types.Numc({length: 2, qualifiedName: "zif_abapgit_frontend_services=>ty_gui_patch"});
    let ev_gui_version_string = INPUT?.ev_gui_version_string || new abap.types.String({qualifiedName: "STRING"});
  }
  async zif_abapgit_frontend_services$get_system_directory(INPUT) {
    let cv_system_directory = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.cv_system_directory) {cv_system_directory = INPUT.cv_system_directory;}
  }
  async zif_abapgit_frontend_services$gui_is_available() {
    let rv_gui_is_available = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    rv_gui_is_available.set(abap.builtin.abap_false);
    return rv_gui_is_available;
  }
  async zif_abapgit_frontend_services$is_sapgui_for_java() {
    let rv_result = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    rv_result.set(abap.builtin.abap_false);
    return rv_result;
  }
  async zif_abapgit_frontend_services$is_sapgui_for_windows() {
    let rv_result = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    rv_result.set(abap.builtin.abap_false);
    return rv_result;
  }
  async zif_abapgit_frontend_services$is_webgui() {
    let rv_is_webgui = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    rv_is_webgui.set(abap.builtin.abap_false);
    return rv_is_webgui;
  }
  async zif_abapgit_frontend_services$open_ie_devtools() {
  }
  async zif_abapgit_frontend_services$show_file_open_dialog(INPUT) {
    let rv_path = new abap.types.String({qualifiedName: "STRING"});
    let iv_title = INPUT?.iv_title;
    if (iv_title?.getQualifiedName === undefined || iv_title.getQualifiedName() !== "STRING") { iv_title = undefined; }
    if (iv_title === undefined) { iv_title = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_title); }
    let iv_extension = INPUT?.iv_extension;
    if (iv_extension?.getQualifiedName === undefined || iv_extension.getQualifiedName() !== "STRING") { iv_extension = undefined; }
    if (iv_extension === undefined) { iv_extension = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_extension); }
    let iv_default_filename = INPUT?.iv_default_filename;
    if (iv_default_filename?.getQualifiedName === undefined || iv_default_filename.getQualifiedName() !== "STRING") { iv_default_filename = undefined; }
    if (iv_default_filename === undefined) { iv_default_filename = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_default_filename); }
    return rv_path;
  }
  async zif_abapgit_frontend_services$show_file_save_dialog(INPUT) {
    let rv_path = new abap.types.String({qualifiedName: "STRING"});
    let iv_title = INPUT?.iv_title;
    if (iv_title?.getQualifiedName === undefined || iv_title.getQualifiedName() !== "STRING") { iv_title = undefined; }
    if (iv_title === undefined) { iv_title = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_title); }
    let iv_extension = INPUT?.iv_extension;
    if (iv_extension?.getQualifiedName === undefined || iv_extension.getQualifiedName() !== "STRING") { iv_extension = undefined; }
    if (iv_extension === undefined) { iv_extension = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_extension); }
    let iv_default_filename = INPUT?.iv_default_filename;
    if (iv_default_filename?.getQualifiedName === undefined || iv_default_filename.getQualifiedName() !== "STRING") { iv_default_filename = undefined; }
    if (iv_default_filename === undefined) { iv_default_filename = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_default_filename); }
    return rv_path;
  }
}
abap.Classes['ZCL_ABAPGIT_FRONTEND_NO_GUI'] = zcl_abapgit_frontend_no_gui;
export {zcl_abapgit_frontend_no_gui};