All files / output cl_salv_columns.clas.mjs

36.06% Statements 22/61
100% Branches 2/2
7.69% Functions 1/13
36.06% Lines 22/61

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 611x 1x 1x 1x 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_columns.clas.abap
class cl_salv_columns {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SALV_COLUMNS';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"SET_COLUMN_POSITION": {"visibility": "U", "parameters": {"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"}, "POSITION": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "GET_COLUMN": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMN", RTTIName: "\\CLASS=CL_SALV_COLUMN"});}, "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"}}},
  "SET_OPTIMIZE": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "GET": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "columnname": new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"}),
  "r_column": new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMN", RTTIName: "\\CLASS=CL_SALV_COLUMN"})}, "SALV_S_COLUMN_REF", "SALV_S_COLUMN_REF", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SALV_T_COLUMN_REF");}, "is_optional": " ", "parm_kind": "R", "type_name": "TableType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "set_column_position": this.set_column_position.bind(this),
      "get_column": this.get_column.bind(this),
      "set_optimize": this.set_optimize.bind(this),
      "get": this.get.bind(this),
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async get() {
    let value = abap.types.TableFactory.construct(new abap.types.Structure({
    "columnname": new abap.types.Character(30, {"qualifiedName":"LVC_FNAME","ddicName":"LVC_FNAME","description":"LVC_FNAME"}),
    "r_column": new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMN", RTTIName: "\\CLASS=CL_SALV_COLUMN"})}, "SALV_S_COLUMN_REF", "SALV_S_COLUMN_REF", {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "SALV_T_COLUMN_REF");
    return value;
    return value;
  }
  async set_optimize(INPUT) {
    let value = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.value) {value.set(INPUT.value);}
    if (INPUT === undefined || INPUT.value === undefined) {value = abap.builtin.abap_true;}
    return;
  }
  async get_column(INPUT) {
    let value = new abap.types.ABAPObject({qualifiedName: "CL_SALV_COLUMN", RTTIName: "\\CLASS=CL_SALV_COLUMN"});
    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); }
    return value;
    return value;
  }
  async set_column_position(INPUT) {
    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 position = new abap.types.Integer({qualifiedName: "I"});
    if (INPUT && INPUT.position) {position.set(INPUT.position);}
    return;
  }
}
abap.Classes['CL_SALV_COLUMNS'] = cl_salv_columns;
export {cl_salv_columns};