All files / output cl_salv_filters.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_filters.clas.abap
class cl_salv_filters {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_FILTERS';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"CLEAR": {"visibility": "U", "parameters": {}},
  "ADD_FILTER": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SALV_FILTER", RTTIName: "\\CLASS=CL_SALV_FILTER"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "COLUMNNAME": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "SIGN": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "OPTION": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "LOW": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "HIGH": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "clear": this.clear.bind(this),
      "add_filter": this.add_filter.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async add_filter(INPUT) {
    let value = new abap.types.ABAPObject({qualifiedName: "CL_SALV_FILTER", RTTIName: "\\CLASS=CL_SALV_FILTER"});
    let columnname = INPUT?.columnname;
    if (columnname?.getQualifiedName === undefined || columnname.getQualifiedName() !== "LVC_FNAME") { columnname = undefined; }
    if (columnname === undefined) { columnname = new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"}).set(INPUT.columnname); }
    let sign = INPUT?.sign || new abap.types.Character(4);
    if (INPUT === undefined || INPUT.sign === undefined) {sign = abap.CharacterFactory.get(1, 'I');}
    let option = INPUT?.option || new abap.types.Character(4);
    if (INPUT === undefined || INPUT.option === undefined) {option = abap.CharacterFactory.get(2, 'EQ');}
    let low = INPUT?.low || new abap.types.Character(4);
    let high = INPUT?.high || new abap.types.Character(4);
    return value;
    return value;
  }
  async clear() {
    return;
  }
}
abap.Classes['CL_SALV_FILTERS'] = cl_salv_filters;
export {cl_salv_filters};