All files / output cl_salv_sorts.clas.mjs

36.53% Statements 19/52
100% Branches 2/2
7.14% Functions 1/14
36.53% Lines 19/52

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 521x 1x 1x 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_sorts.clas.abap
class cl_salv_sorts {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_SORTS';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"ADD_SORT": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SALV_SORT", RTTIName: "\\CLASS=CL_SALV_SORT"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "COLUMNNAME": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "SEQUENCE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "POSITION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "SUBTOTAL": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}, "GROUP": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}, "OBLIGATORY": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "SET_COMPRESSED_SUBTOTAL": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "CLEAR": {"visibility": "U", "parameters": {}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "add_sort": this.add_sort.bind(this),
      "set_compressed_subtotal": this.set_compressed_subtotal.bind(this),
      "clear": this.clear.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async clear() {
    return;
  }
  async set_compressed_subtotal(INPUT) {
    let value = new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"});
    if (INPUT && INPUT.value) {value.set(INPUT.value);}
    return;
  }
  async add_sort(INPUT) {
    let value = new abap.types.ABAPObject({qualifiedName: "CL_SALV_SORT", RTTIName: "\\CLASS=CL_SALV_SORT"});
    let columnname = INPUT?.columnname;
    let sequence = INPUT?.sequence || new abap.types.Character(4);
    let position = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.position) {position.set(INPUT.position);}
    let subtotal = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.subtotal) {subtotal.set(INPUT.subtotal);}
    if (INPUT === undefined || INPUT.subtotal === undefined) {subtotal = abap.builtin.abap_false;}
    let group = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.group) {group.set(INPUT.group);}
    let obligatory = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.obligatory) {obligatory.set(INPUT.obligatory);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
    return value;
  }
}
abap.Classes['CL_SALV_SORTS'] = cl_salv_sorts;
export {cl_salv_sorts};