All files / output cl_salv_functions.clas.mjs

39.53% Statements 17/43
100% Branches 2/2
9.09% Functions 1/11
39.53% Lines 17/43

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 431x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x                 1x       1x         1x                       1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_salv_functions.clas.abap
class cl_salv_functions {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_FUNCTIONS';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"ADD_FUNCTION": {"visibility": "U", "parameters": {"NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "ICON": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "TOOLTIP": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "POSITION": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "SET_ALL": {"visibility": "U", "parameters": {"FLAG": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "add_function": this.add_function.bind(this),
      "set_all": this.set_all.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async set_all(INPUT) {
    let flag = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.flag) {flag.set(INPUT.flag);}
    return;
  }
  async add_function(INPUT) {
    let name = INPUT?.name;
    let icon = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.icon) {icon.set(INPUT.icon);}
    let text = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.text) {text.set(INPUT.text);}
    let tooltip = INPUT?.tooltip;
    if (tooltip?.getQualifiedName === undefined || tooltip.getQualifiedName() !== "STRING") { tooltip = undefined; }
    if (tooltip === undefined) { tooltip = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.tooltip); }
    let position = INPUT?.position;
    return;
  }
}
abap.Classes['CL_SALV_FUNCTIONS'] = cl_salv_functions;
export {cl_salv_functions};