All files / output zcl_abapgit_oo_interface.clas.mjs

11.92% Statements 54/453
100% Branches 4/4
11.53% Functions 3/26
11.92% Lines 54/453

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 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 4531x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x     1x                                                                           1x     1x                                                                                                                   1x     1x                                           1x                                                                                                                                                                                                       1x                                                     1x                                                               1x                                                         1x                     1x                                                                                                                 1x                                                         1x 1x 1x
const {zcl_abapgit_oo_base} = await import("./zcl_abapgit_oo_base.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_oo_interface.clas.abap
class zcl_abapgit_oo_interface extends zcl_abapgit_oo_base {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_OO_INTERFACE';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_OO_OBJECT_FNC"];
  static ATTRIBUTES = {};
  static METHODS = {"UPDATE_REPORT": {"visibility": "I", "parameters": {"RV_UPDATED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "IV_PROGRAM": {"type": () => {return new abap.types.Character(40, {"qualifiedName":"SYREPID","ddicName":"SYREPID","description":"SYREPID"});}, "is_optional": " "}, "IT_SOURCE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");}, "is_optional": " "}, "IV_PACKAGE": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"});}, "is_optional": " "}, "IV_VERSION": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"UCCHECK","ddicName":"UCCHECK","description":"UCCHECK"});}, "is_optional": " "}}},
  "UPDATE_META": {"visibility": "I", "parameters": {"IV_NAME": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"});}, "is_optional": " "}, "IT_SOURCE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "RSWSOURCET");}, "is_optional": " "}}},
  "INIT_SCANNER": {"visibility": "I", "parameters": {"RO_SCANNER": {"type": () => {return (() => { throw new Error("Void type: cl_oo_source_scanner_interface") })();}, "is_optional": " "}, "IT_SOURCE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_string_tt");}, "is_optional": " "}, "IV_NAME": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"});}, "is_optional": " "}}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~CREATE": {"visibility": "U", "parameters": {}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~DELETE": {"visibility": "U", "parameters": {}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~GET_INCLUDES": {"visibility": "U", "parameters": {}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~GET_INTERFACE_PROPERTIES": {"visibility": "U", "parameters": {}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~DESERIALIZE_SOURCE": {"visibility": "U", "parameters": {}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~EXISTS": {"visibility": "U", "parameters": {}},
  "ZIF_ABAPGIT_OO_OBJECT_FNC~SYNTAX_CHECK": {"visibility": "U", "parameters": {}}};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "zif_abapgit_oo_object_fnc$create": this.zif_abapgit_oo_object_fnc$create.bind(this),
      "zif_abapgit_oo_object_fnc$delete": this.zif_abapgit_oo_object_fnc$delete.bind(this),
      "zif_abapgit_oo_object_fnc$get_includes": this.zif_abapgit_oo_object_fnc$get_includes.bind(this),
      "zif_abapgit_oo_object_fnc$get_interface_properties": this.zif_abapgit_oo_object_fnc$get_interface_properties.bind(this),
      "zif_abapgit_oo_object_fnc$deserialize_source": this.zif_abapgit_oo_object_fnc$deserialize_source.bind(this),
      "zif_abapgit_oo_object_fnc$exists": this.zif_abapgit_oo_object_fnc$exists.bind(this),
      "zif_abapgit_oo_object_fnc$syntax_check": this.zif_abapgit_oo_object_fnc$syntax_check.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async init_scanner(INPUT) {
    return zcl_abapgit_oo_interface.init_scanner(INPUT);
  }
  static async init_scanner(INPUT) {
    let ro_scanner = (() => { throw new Error("Void type: cl_oo_source_scanner_interface") })();
    let it_source = INPUT?.it_source;
    if (it_source?.getQualifiedName === undefined || it_source.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_STRING_TT") { it_source = undefined; }
    if (it_source === undefined) { it_source = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_string_tt").set(INPUT.it_source); }
    let iv_name = INPUT?.iv_name;
    if (iv_name?.getQualifiedName === undefined || iv_name.getQualifiedName() !== "SEOCLSNAME") { iv_name = undefined; }
    if (iv_name === undefined) { iv_name = new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"}).set(INPUT.iv_name); }
    let lx_exc = new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"});
    let lv_message = new abap.types.String({qualifiedName: "STRING"});
    let lv_classname = new abap.types.Character(200, {"qualifiedName":"abap_abstypename"});
    let fs_lv_line_ = new abap.types.FieldSymbol(new abap.types.Integer({qualifiedName: "I"}));
    try {
      ro_scanner.set((await abap.Classes['CL_OO_SOURCE_SCANNER_INTERFACE'].create_interface_scanner({clif_name: iv_name, source: it_source})));
      await ro_scanner.get().scan();
    } catch (e) {
      if ((abap.Classes['CX_CLIF_SCAN_ERROR'] && e instanceof abap.Classes['CX_CLIF_SCAN_ERROR'])) {
        await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: abap.CharacterFactory.get(31, 'error initializing INTF scanner')});
      } else if ((abap.Classes['CX_ROOT'] && e instanceof abap.Classes['CX_ROOT'])) {
        lx_exc.set(e);
        lv_classname.set((await abap.Classes['CL_ABAP_CLASSDESCR'].get_class_name({p_object: lx_exc})));
        if (abap.compare.eq(lv_classname, abap.CharacterFactory.get(35, '\\CLASS=CX_OO_CLIF_SCAN_ERROR_DETAIL'))) {
          abap.statements.assign({target: fs_lv_line_, dynamicName: 'lx_exc' + '->' + 'SOURCE_POSITION-LINE', dynamicSource: (() => {
              try { return lx_exc; } catch {}
              try { return this.lx_exc; } catch {}
          })()});
          abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
          lv_message.set(new abap.types.String().set(`${abap.templateFormatting((await lx_exc.get().if_message$get_text()))}, line ${abap.templateFormatting(fs_lv_line_)}`));
        } else {
          lv_message.set((await lx_exc.get().if_message$get_text()));
        }
        await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: lv_message});
      } else {
        throw e;
      }
    }
    return ro_scanner;
  }
  async update_meta(INPUT) {
    return zcl_abapgit_oo_interface.update_meta(INPUT);
  }
  static async update_meta(INPUT) {
    let iv_name = INPUT?.iv_name;
    if (iv_name?.getQualifiedName === undefined || iv_name.getQualifiedName() !== "SEOCLSNAME") { iv_name = undefined; }
    if (iv_name === undefined) { iv_name = new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"}).set(INPUT.iv_name); }
    let it_source = INPUT?.it_source;
    if (it_source?.getQualifiedName === undefined || it_source.getQualifiedName() !== "RSWSOURCET") { it_source = undefined; }
    if (it_source === undefined) { it_source = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "RSWSOURCET").set(INPUT.it_source); }
    let lo_update = (() => { throw new Error("Void type: cl_oo_interface_section_source") })();
    let lx_error = (() => { throw new Error("Void type: cx_oo_source_save_failure") })();
    let ls_clskey = new abap.types.Structure({
    "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {});
    let lv_scan_error = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    ls_clskey.get().clsname.set(iv_name);
    try {
      if (abap.FunctionModules['SEO_BUFFER_REFRESH'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
      await abap.FunctionModules['SEO_BUFFER_REFRESH']({exporting: {cifkey: ls_clskey, version: abap.TypePools["SEOC"].seoc_version_active}});
      let unique375 = abap.Classes["CLAS-ZCL_ABAPGIT_OO_INTERFACE-"+'CL_OO_INTERFACE_SECTION_SOURCE'.trimEnd()];
      if (unique375 === undefined) { unique375 = abap.Classes['CL_OO_INTERFACE_SECTION_SOURCE'.trimEnd()]; }
      if (unique375 === undefined) { throw new abap.Classes['CX_SY_CREATE_OBJECT_ERROR']; }
      lo_update.set(await (new unique375()).constructor_({intkey: ls_clskey, state: abap.CharacterFactory.get(1, 'A'), source: it_source}));
    } catch (e) {
      if ((abap.Classes['CX_SY_DYN_CALL_PARAM_NOT_FOUND'] && e instanceof abap.Classes['CX_SY_DYN_CALL_PARAM_NOT_FOUND'])) {
        lo_update.set(await (new abap.Classes['CL_OO_INTERFACE_SECTION_SOURCE']()).constructor_({intkey: ls_clskey, state: abap.CharacterFactory.get(1, 'A')}));
      } else {
        throw e;
      }
    }
    if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
      await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100();
    }
    await lo_update.get().set_dark_mode(abap.builtin.abap_true);
    try {
      lv_scan_error.set(await lo_update.get().scan_section_source());
      abap.builtin.sy.get().subrc.set(0);
    } catch (e) {
      if (e.classic) {
          switch (e.classic.toUpperCase()) {
          case "SCAN_ABAP_SOURCE_ERROR": abap.builtin.sy.get().subrc.set(1); break;
          default: abap.builtin.sy.get().subrc.set(2); break;
            }
        } else {
            throw e;
        }
      }
      if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)) || abap.compare.eq(lv_scan_error, abap.builtin.abap_true)) {
        await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`INTF, error while scanning source. Subrc = ${abap.templateFormatting(abap.builtin.sy.get().subrc)}`)});
      }
      try {
        await lo_update.get().revert_scan_result();
      } catch (e) {
        if ((abap.Classes['CX_OO_SOURCE_SAVE_FAILURE'] && e instanceof abap.Classes['CX_OO_SOURCE_SAVE_FAILURE'])) {
          lx_error.set(e);
          await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_with_text({ix_previous: lx_error});
        } else {
          throw e;
        }
      }
    }
    async update_report(INPUT) {
      return zcl_abapgit_oo_interface.update_report(INPUT);
    }
    static async update_report(INPUT) {
      let rv_updated = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
      let iv_program = INPUT?.iv_program;
      if (iv_program?.getQualifiedName === undefined || iv_program.getQualifiedName() !== "SYREPID") { iv_program = undefined; }
      if (iv_program === undefined) { iv_program = new abap.types.Character(40, {"qualifiedName":"SYREPID","ddicName":"SYREPID","description":"SYREPID"}).set(INPUT.iv_program); }
      let it_source = INPUT?.it_source;
      if (it_source?.getQualifiedName === undefined || it_source.getQualifiedName() !== "STRING_TABLE") { it_source = undefined; }
      if (it_source === undefined) { it_source = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE").set(INPUT.it_source); }
      let iv_package = INPUT?.iv_package;
      if (iv_package?.getQualifiedName === undefined || iv_package.getQualifiedName() !== "DEVCLASS") { iv_package = undefined; }
      if (iv_package === undefined) { iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}).set(INPUT.iv_package); }
      let iv_version = INPUT?.iv_version;
      if (iv_version?.getQualifiedName === undefined || iv_version.getQualifiedName() !== "UCCHECK") { iv_version = undefined; }
      if (iv_version === undefined) { iv_version = new abap.types.Character(1, {"qualifiedName":"UCCHECK","ddicName":"UCCHECK","description":"UCCHECK"}).set(INPUT.iv_version); }
      let lv_type = new abap.types.Character(1, {});
      lv_type.set(abap.Classes['ZCL_ABAPGIT_OO_BASE'].c_include_program_type);
      if (abap.compare.eq(iv_program.getOffset({offset: 30}), abap.TypePools["SREXT"].srext_ext_interface_pool)) {
        lv_type.set(abap.Classes['ZCL_ABAPGIT_OO_BASE'].c_ip_program_type);
      }
      rv_updated.set((await (await abap.Classes['ZCL_ABAPGIT_FACTORY'].get_sap_report()).get().zif_abapgit_sap_report$update_report({iv_name: iv_program, iv_package: iv_package, iv_version: iv_version, it_source: it_source, iv_program_type: lv_type})));
      return rv_updated;
    }
    async zif_abapgit_oo_object_fnc$create(INPUT) {
      let iv_check = INPUT?.iv_check;
      if (iv_check?.getQualifiedName === undefined || iv_check.getQualifiedName() !== "ABAP_BOOL") { iv_check = undefined; }
      if (iv_check === undefined) { iv_check = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.iv_check); }
      let iv_package = INPUT?.iv_package;
      if (iv_package?.getQualifiedName === undefined || iv_package.getQualifiedName() !== "DEVCLASS") { iv_package = undefined; }
      if (iv_package === undefined) { iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}).set(INPUT.iv_package); }
      let it_attributes = abap.types.TableFactory.construct(new abap.types.Structure({
      "cmpname": new abap.types.Character(30, {"qualifiedName":"SEOCMPNAME","ddicName":"SEOCMPNAME","description":"Component name"}),
      "attkeyfld": new abap.types.Character(1, {"qualifiedName":"SEOKEYFLD","ddicName":"SEOKEYFLD","description":"SEOKEYFLD"}),
      "attbusobj": new abap.types.Character(1, {"qualifiedName":"SEOBUSOBJ","ddicName":"SEOBUSOBJ","description":"SEOBUSOBJ"}),
      "exposure": new abap.types.Numc({qualifiedName: "SEOEXPOSE"})}, "zif_abapgit_oo_object_fnc=>ty_obj_attribute", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[{"name":"cmpname","type":"SORTED","isUnique":false,"keyFields":["CMPNAME"]}]}, "zif_abapgit_oo_object_fnc=>ty_obj_attribute_tt");
      if (INPUT && INPUT.it_attributes) {it_attributes.set(INPUT.it_attributes);}
      let cg_properties = new abap.types.Character(4);
      if (INPUT && INPUT.cg_properties) {cg_properties = INPUT.cg_properties;}
      let lt_vseoattrib = (() => { throw new Error("Void type: SEOO_ATTRIBUTES_R") })();
      let ls_interface_key = new abap.types.Structure({
      "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {});
      let ls_properties = new abap.types.Structure({
      "clsname": new abap.types.Character(30, {}),
      "version": new abap.types.Numc(),
      "langu": new abap.types.Character(1, {}),
      "descript": new abap.types.Character(60, {}),
      "uuid": new abap.types.Hex({length: 16}),
      "category": new abap.types.Numc({length: 2}),
      "exposure": new abap.types.Numc(),
      "state": new abap.types.Numc(),
      "release": new abap.types.Numc(),
      "author": new abap.types.Character(12, {}),
      "createdon": new abap.types.Date(),
      "changedby": new abap.types.Character(12, {}),
      "changedon": new abap.types.Date(),
      "chgdanyby": new abap.types.Character(12, {}),
      "chgdanyon": new abap.types.Date(),
      "remote": new abap.types.Character(1, {}),
      "unicode": new abap.types.Character(1, {}),
      "r3release": new abap.types.Character(10, {}),
      "clsproxy": new abap.types.Character(1, {})}, "VSEOINTERF", "VSEOINTERF", {}, {});
      let fs_lv_clsname_ = new abap.types.FieldSymbol(new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"}));
      abap.statements.assign({component: abap.CharacterFactory.get(7, 'CLSNAME'), target: fs_lv_clsname_, source: cg_properties});
      abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)));
      if (abap.compare.eq(iv_check, abap.builtin.abap_true)) {
        ls_interface_key.get().clsname.set(fs_lv_clsname_);
        ls_properties.set((await this.zif_abapgit_oo_object_fnc$get_interface_properties({is_interface_key: ls_interface_key})));
        if (abap.compare.eq(ls_properties, cg_properties)) {
          return;
        }
      }
      lt_vseoattrib.set((await this.convert_attrib_to_vseoattrib({iv_clsname: fs_lv_clsname_, it_attributes: it_attributes})));
      ls_properties.set(cg_properties);
      ls_properties.get().state.set(abap.TypePools["SEOC"].seoc_state_implemented);
      try {
        try {
          if (abap.FunctionModules['SEO_INTERFACE_CREATE_COMPLETE'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
          await abap.FunctionModules['SEO_INTERFACE_CREATE_COMPLETE']({exporting: {devclass: iv_package, overwrite: abap.builtin.abap_true, version: abap.TypePools["SEOC"].seoc_version_active, suppress_dialog: abap.builtin.abap_true}, changing: {interface: ls_properties, attributes: lt_vseoattrib}});
          abap.builtin.sy.get().subrc.set(0);
        } catch (e) {
          if (e.classic) {
              switch (e.classic.toUpperCase()) {
              case "EXISTING": abap.builtin.sy.get().subrc.set(1); break;
              case "IS_CLASS": abap.builtin.sy.get().subrc.set(2); break;
              case "DB_ERROR": abap.builtin.sy.get().subrc.set(3); break;
              case "COMPONENT_ERROR": abap.builtin.sy.get().subrc.set(4); break;
              case "NO_ACCESS": abap.builtin.sy.get().subrc.set(5); break;
              case "OTHER": abap.builtin.sy.get().subrc.set(6); break;
              default: abap.builtin.sy.get().subrc.set(7); break;
                }
            } else {
                throw e;
            }
          }
        } catch (e) {
          if ((abap.Classes['CX_SY_DYN_CALL_PARAM_NOT_FOUND'] && e instanceof abap.Classes['CX_SY_DYN_CALL_PARAM_NOT_FOUND'])) {
            try {
              if (abap.FunctionModules['SEO_INTERFACE_CREATE_COMPLETE'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
              await abap.FunctionModules['SEO_INTERFACE_CREATE_COMPLETE']({exporting: {devclass: iv_package, overwrite: abap.builtin.abap_true, version: abap.TypePools["SEOC"].seoc_version_active}, changing: {interface: ls_properties, attributes: lt_vseoattrib}});
              abap.builtin.sy.get().subrc.set(0);
            } catch (e) {
              if (e.classic) {
                  switch (e.classic.toUpperCase()) {
                  case "EXISTING": abap.builtin.sy.get().subrc.set(1); break;
                  case "IS_CLASS": abap.builtin.sy.get().subrc.set(2); break;
                  case "DB_ERROR": abap.builtin.sy.get().subrc.set(3); break;
                  case "COMPONENT_ERROR": abap.builtin.sy.get().subrc.set(4); break;
                  case "NO_ACCESS": abap.builtin.sy.get().subrc.set(5); break;
                  case "OTHER": abap.builtin.sy.get().subrc.set(6); break;
                  default: abap.builtin.sy.get().subrc.set(7); break;
                    }
                } else {
                    throw e;
                }
              }
            } else {
              throw e;
            }
          }
          if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
            await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100();
          }
        }
        async zif_abapgit_oo_object_fnc$delete(INPUT) {
          let is_deletion_key = INPUT?.is_deletion_key;
          if (is_deletion_key?.getQualifiedName === undefined || is_deletion_key.getQualifiedName() !== "SEOCLSKEY") { is_deletion_key = undefined; }
          if (is_deletion_key === undefined) { is_deletion_key = new abap.types.Structure({
          "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {}).set(INPUT.is_deletion_key); }
          try {
            if (abap.FunctionModules['SEO_INTERFACE_DELETE_COMPLETE'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
            await abap.FunctionModules['SEO_INTERFACE_DELETE_COMPLETE']({exporting: {intkey: is_deletion_key}});
            abap.builtin.sy.get().subrc.set(0);
          } catch (e) {
            if (e.classic) {
                switch (e.classic.toUpperCase()) {
                case "NOT_EXISTING": abap.builtin.sy.get().subrc.set(1); break;
                case "IS_CLASS": abap.builtin.sy.get().subrc.set(2); break;
                case "DB_ERROR": abap.builtin.sy.get().subrc.set(3); break;
                case "NO_ACCESS": abap.builtin.sy.get().subrc.set(4); break;
                case "OTHER": abap.builtin.sy.get().subrc.set(5); break;
                default: abap.builtin.sy.get().subrc.set(6); break;
                  }
              } else {
                  throw e;
              }
            }
            if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
              await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100();
            }
          }
          async zif_abapgit_oo_object_fnc$deserialize_source(INPUT) {
            let is_key = INPUT?.is_key;
            if (is_key?.getQualifiedName === undefined || is_key.getQualifiedName() !== "SEOCLSKEY") { is_key = undefined; }
            if (is_key === undefined) { is_key = new abap.types.Structure({
            "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {}).set(INPUT.is_key); }
            let it_source = INPUT?.it_source;
            if (it_source?.getQualifiedName === undefined || it_source.getQualifiedName() !== "ZIF_ABAPGIT_DEFINITIONS=>TY_STRING_TT") { it_source = undefined; }
            if (it_source === undefined) { it_source = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_definitions=>ty_string_tt").set(INPUT.it_source); }
            let iv_package = INPUT?.iv_package;
            if (iv_package?.getQualifiedName === undefined || iv_package.getQualifiedName() !== "DEVCLASS") { iv_package = undefined; }
            if (iv_package === undefined) { iv_package = new abap.types.Character(30, {"qualifiedName":"DEVCLASS","ddicName":"DEVCLASS","description":"DEVCLASS"}).set(INPUT.iv_package); }
            let iv_version = INPUT?.iv_version;
            if (iv_version?.getQualifiedName === undefined || iv_version.getQualifiedName() !== "UCCHECK") { iv_version = undefined; }
            if (iv_version === undefined) { iv_version = new abap.types.Character(1, {"qualifiedName":"UCCHECK","ddicName":"UCCHECK","description":"UCCHECK"}).set(INPUT.iv_version); }
            let lv_updated = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
            let lv_program = (() => { throw new Error("Void type: PROGRAM") })();
            let lo_scanner = (() => { throw new Error("Void type: cl_oo_source_scanner_interface") })();
            let lt_public = (() => { throw new Error("Void type: SEOP_SOURCE_STRING") })();
            if (abap.FunctionModules['SEO_BUFFER_INIT'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
            await abap.FunctionModules['SEO_BUFFER_INIT']();
            if (abap.FunctionModules['SEO_BUFFER_REFRESH'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
            await abap.FunctionModules['SEO_BUFFER_REFRESH']({exporting: {cifkey: is_key, version: abap.TypePools["SEOC"].seoc_version_inactive}});
            lo_scanner.set((await this.init_scanner({it_source: it_source, iv_name: is_key.get().clsname})));
            lt_public.set((await lo_scanner.get().get_interface_section_source()));
            if (abap.compare.initial(lt_public) === false) {
              lv_program.set((await abap.Classes['CL_OO_CLASSNAME_SERVICE'].get_intfsec_name(is_key.get().clsname)));
              lv_updated.set((await this.update_report({iv_program: lv_program, iv_package: iv_package, iv_version: iv_version, it_source: lt_public})));
              if (abap.compare.eq(lv_updated, abap.builtin.abap_true)) {
                await this.update_meta({iv_name: is_key.get().clsname, it_source: lt_public});
              }
            }
          }
          async zif_abapgit_oo_object_fnc$exists(INPUT) {
            let rv_exists = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
            let iv_object_name = INPUT?.iv_object_name;
            if (iv_object_name?.getQualifiedName === undefined || iv_object_name.getQualifiedName() !== "SEOCLSNAME") { iv_object_name = undefined; }
            if (iv_object_name === undefined) { iv_object_name = new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"}).set(INPUT.iv_object_name); }
            let ls_object_name = new abap.types.Structure({
            "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {});
            ls_object_name.set(iv_object_name);
            try {
              if (abap.FunctionModules['SEO_INTERFACE_EXISTENCE_CHECK'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
              await abap.FunctionModules['SEO_INTERFACE_EXISTENCE_CHECK']({exporting: {intkey: ls_object_name}});
              abap.builtin.sy.get().subrc.set(0);
            } catch (e) {
              if (e.classic) {
                  switch (e.classic.toUpperCase()) {
                  case "NOT_SPECIFIED": abap.builtin.sy.get().subrc.set(1); break;
                  case "NOT_EXISTING": abap.builtin.sy.get().subrc.set(2); break;
                  case "IS_CLASS": abap.builtin.sy.get().subrc.set(3); break;
                  case "NO_TEXT": abap.builtin.sy.get().subrc.set(4); break;
                  case "INCONSISTENT": abap.builtin.sy.get().subrc.set(5); break;
                  default: abap.builtin.sy.get().subrc.set(6); break;
                    }
                } else {
                    throw e;
                }
              }
              rv_exists.set(abap.builtin.boolc(abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0)) || abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(4))));
              return rv_exists;
            }
            async zif_abapgit_oo_object_fnc$get_includes(INPUT) {
              let rt_includes = abap.types.TableFactory.construct(new abap.types.Structure({
              "programm": new abap.types.Character(40, {"qualifiedName":"SYREPID","ddicName":"SYREPID","description":"SYREPID"})}, "zif_abapgit_oo_object_fnc=>ty_includes", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "zif_abapgit_oo_object_fnc=>ty_includes_tt");
              let iv_object_name = INPUT?.iv_object_name;
              if (iv_object_name?.getQualifiedName === undefined || iv_object_name.getQualifiedName() !== "SOBJ_NAME") { iv_object_name = undefined; }
              if (iv_object_name === undefined) { iv_object_name = new abap.types.Character(40, {"qualifiedName":"SOBJ_NAME","ddicName":"SOBJ_NAME","description":"SOBJ_NAME"}).set(INPUT.iv_object_name); }
              let lv_interface_name = new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"});
              lv_interface_name.set(iv_object_name);
              abap.statements.append({source: (await abap.Classes['CL_OO_CLASSNAME_SERVICE'].get_interfacepool_name(lv_interface_name)), target: rt_includes});
              return rt_includes;
            }
            async zif_abapgit_oo_object_fnc$get_interface_properties(INPUT) {
              let rs_interface_properties = new abap.types.Structure({
              "clsname": new abap.types.Character(30, {}),
              "version": new abap.types.Numc(),
              "langu": new abap.types.Character(1, {}),
              "descript": new abap.types.Character(60, {}),
              "uuid": new abap.types.Hex({length: 16}),
              "category": new abap.types.Numc({length: 2}),
              "exposure": new abap.types.Numc(),
              "state": new abap.types.Numc(),
              "release": new abap.types.Numc(),
              "author": new abap.types.Character(12, {}),
              "createdon": new abap.types.Date(),
              "changedby": new abap.types.Character(12, {}),
              "changedon": new abap.types.Date(),
              "chgdanyby": new abap.types.Character(12, {}),
              "chgdanyon": new abap.types.Date(),
              "remote": new abap.types.Character(1, {}),
              "unicode": new abap.types.Character(1, {}),
              "r3release": new abap.types.Character(10, {}),
              "clsproxy": new abap.types.Character(1, {})}, "VSEOINTERF", "VSEOINTERF", {}, {});
              let is_interface_key = INPUT?.is_interface_key;
              if (is_interface_key?.getQualifiedName === undefined || is_interface_key.getQualifiedName() !== "SEOCLSKEY") { is_interface_key = undefined; }
              if (is_interface_key === undefined) { is_interface_key = new abap.types.Structure({
              "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {}).set(INPUT.is_interface_key); }
              try {
                if (abap.FunctionModules['SEO_CLIF_GET'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
                await abap.FunctionModules['SEO_CLIF_GET']({exporting: {cifkey: is_interface_key, version: abap.TypePools["SEOC"].seoc_version_active}, importing: {interface: rs_interface_properties}});
                abap.builtin.sy.get().subrc.set(0);
              } catch (e) {
                if (e.classic) {
                    switch (e.classic.toUpperCase()) {
                    case "NOT_EXISTING": abap.builtin.sy.get().subrc.set(1); break;
                    case "DELETED": abap.builtin.sy.get().subrc.set(2); break;
                    case "MODEL_ONLY": abap.builtin.sy.get().subrc.set(3); break;
                    default: abap.builtin.sy.get().subrc.set(4); break;
                      }
                  } else {
                      throw e;
                  }
                }
                if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(1))) {
                  return rs_interface_properties;
                } else if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
                  await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100();
                }
                rs_interface_properties.get().uuid.clear();
                rs_interface_properties.get().author.clear();
                rs_interface_properties.get().createdon.clear();
                rs_interface_properties.get().changedby.clear();
                rs_interface_properties.get().changedon.clear();
                rs_interface_properties.get().chgdanyby.clear();
                rs_interface_properties.get().chgdanyon.clear();
                rs_interface_properties.get().r3release.clear();
                rs_interface_properties.get().version.clear();
                return rs_interface_properties;
              }
              async zif_abapgit_oo_object_fnc$syntax_check(INPUT) {
                let iv_object_name = INPUT?.iv_object_name;
                if (iv_object_name?.getQualifiedName === undefined || iv_object_name.getQualifiedName() !== "SEOCLSNAME") { iv_object_name = undefined; }
                if (iv_object_name === undefined) { iv_object_name = new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"}).set(INPUT.iv_object_name); }
                let ls_intkey = new abap.types.Structure({
                "clsname": new abap.types.Character(30, {"qualifiedName":"SEOCLSNAME","ddicName":"SEOCLSNAME","description":"SEOCLSNAME"})}, "SEOCLSKEY", "SEOCLSKEY", {}, {});
                let lv_syntaxerror = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
                ls_intkey.get().clsname.set(abap.builtin.to_upper({val: iv_object_name}));
                try {
                  if (abap.FunctionModules['SEO_INTERFACE_CHECK_POOL'] === undefined) { if (abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()] === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; } else { throw new abap.Classes['CX_SY_DYN_CALL_ILLEGAL_FUNC'.trimEnd()]();} }
                  await abap.FunctionModules['SEO_INTERFACE_CHECK_POOL']({exporting: {intkey: ls_intkey, suppress_error_popup: abap.builtin.abap_true}, importing: {syntaxerror: lv_syntaxerror}});
                  abap.builtin.sy.get().subrc.set(0);
                } catch (e) {
                  if (e.classic) {
                      switch (e.classic.toUpperCase()) {
                      case "ERROR_MESSAGE": abap.builtin.sy.get().subrc.set(1); break;
                      default: abap.builtin.sy.get().subrc.set(2); break;
                        }
                    } else {
                        throw e;
                    }
                  }
                  if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
                    await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise_t100();
                  }
                  if (abap.compare.eq(lv_syntaxerror, abap.builtin.abap_true)) {
                    await abap.Classes['ZCX_ABAPGIT_EXCEPTION'].raise({iv_text: new abap.types.String().set(`Interface ${abap.templateFormatting(ls_intkey.get().clsname)} has syntax errors `)});
                  }
                }
              }
              abap.Classes['ZCL_ABAPGIT_OO_INTERFACE'] = zcl_abapgit_oo_interface;
export {zcl_abapgit_oo_interface};