All files / output zcx_abapgit_cancel.clas.mjs

25.86% Statements 15/58
100% Branches 2/2
9.09% Functions 1/11
25.86% Lines 15/58

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 581x 1x 1x 1x 1x 1x 1x 1x 1x           1x 1x                 1x                                                             1x 1x 1x
const {zcx_abapgit_exception} = await import("./zcx_abapgit_exception.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// zcx_abapgit_cancel.clas.abap
class zcx_abapgit_cancel extends zcx_abapgit_exception {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCX_ABAPGIT_CANCEL';
  static IMPLEMENTED_INTERFACES = ["IF_T100_MESSAGE","IF_MESSAGE","IF_MESSAGE","IF_MESSAGE","IF_MESSAGE"];
  static ATTRIBUTES = {};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"TEXTID": {"type": () => {return new abap.types.Structure({
  "msgid": new abap.types.Character(20, {}),
  "msgno": new abap.types.Numc({length: 3}),
  "attr1": new abap.types.Character(255, {}),
  "attr2": new abap.types.Character(255, {}),
  "attr3": new abap.types.Character(255, {}),
  "attr4": new abap.types.Character(255, {})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});}, "is_optional": " "}, "PREVIOUS": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"});}, "is_optional": " "}, "LOG": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});}, "is_optional": " "}, "MSGV1": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "MSGV2": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "MSGV3": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "MSGV4": {"type": () => {return new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});}, "is_optional": " "}, "LONGTEXT": {"type": () => {return new abap.types.Character();}, "is_optional": " "}}}};
  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,
    };
  }
  async constructor_(INPUT) {
    let textid = new abap.types.Structure({
    "msgid": new abap.types.Character(20, {}),
    "msgno": new abap.types.Numc({length: 3}),
    "attr1": new abap.types.Character(255, {}),
    "attr2": new abap.types.Character(255, {}),
    "attr3": new abap.types.Character(255, {}),
    "attr4": new abap.types.Character(255, {})}, "SCX_T100KEY", "SCX_T100KEY", {}, {});
    if (INPUT && INPUT.textid) {textid.set(INPUT.textid);}
    let previous = new abap.types.ABAPObject({qualifiedName: "CX_ROOT", RTTIName: "\\CLASS=CX_ROOT"});
    if (INPUT && INPUT.previous) {previous.set(INPUT.previous);}
    let log = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_LOG", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_LOG"});
    if (INPUT && INPUT.log) {log.set(INPUT.log);}
    let msgv1 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv1) {msgv1.set(INPUT.msgv1);}
    let msgv2 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv2) {msgv2.set(INPUT.msgv2);}
    let msgv3 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv3) {msgv3.set(INPUT.msgv3);}
    let msgv4 = new abap.types.Character(50, {"qualifiedName":"SYMSGV","ddicName":"SYMSGV","description":"SYMSGV"});
    if (INPUT && INPUT.msgv4) {msgv4.set(INPUT.msgv4);}
    let longtext = INPUT?.longtext || new abap.types.Character();
    await super.constructor_({previous: previous, log: log, msgv1: msgv1, msgv2: msgv2, msgv3: msgv3, msgv4: msgv4, longtext: longtext});
    this.me.get().textid.clear();
    if (abap.compare.initial(textid)) {
      this.if_t100_message$t100key.set(abap.Classes['IF_T100_MESSAGE'].if_t100_message$default_textid);
    } else {
      this.if_t100_message$t100key.set(textid);
    }
    return this;
  }
}
abap.Classes['ZCX_ABAPGIT_CANCEL'] = zcx_abapgit_cancel;
export {zcx_abapgit_cancel};