All files / output cl_gui_cfw.clas.mjs

42.85% Statements 21/49
100% Branches 2/2
7.69% Functions 1/13
42.85% Lines 21/49

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 491x 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_gui_cfw.clas.abap
class cl_gui_cfw {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_CFW';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"COMPUTE_PIXEL_FROM_METRIC": {"visibility": "U", "parameters": {"VAL": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}, "X_OR_Y": {"type": () => {return new abap.types.Character();}, "is_optional": " "}, "IN": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " "}}},
  "FLUSH": {"visibility": "U", "parameters": {}},
  "SET_NEW_OK_CODE": {"visibility": "U", "parameters": {"NEW_CODE": {"type": () => {return new abap.types.Character();}, "is_optional": " "}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async compute_pixel_from_metric(INPUT) {
    return cl_gui_cfw.compute_pixel_from_metric(INPUT);
  }
  static async compute_pixel_from_metric(INPUT) {
    let val = new abap.types.Integer({qualifiedName: "I"});
    let x_or_y = INPUT?.x_or_y;
    let $in = INPUT?.in;
    if ($in?.getQualifiedName === undefined || $in.getQualifiedName() !== "I") { $in = undefined; }
    if ($in === undefined) { $in = new abap.types.Integer({qualifiedName: "I"}).set(INPUT.in); }
    val.set(abap.IntegerFactory.get(1));
    return val;
  }
  async flush() {
    return cl_gui_cfw.flush();
  }
  static async flush() {
    return;
  }
  async set_new_ok_code(INPUT) {
    return cl_gui_cfw.set_new_ok_code(INPUT);
  }
  static async set_new_ok_code(INPUT) {
    let new_code = INPUT?.new_code;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(15, 'not implemented')));
  }
}
abap.Classes['CL_GUI_CFW'] = cl_gui_cfw;
export {cl_gui_cfw};