All files / output cl_gui_cfw.clas.mjs

41.66% Statements 30/72
100% Branches 2/2
4.76% Functions 1/21
41.66% Lines 30/72

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 61 62 63 64 65 66 67 68 69 70 71 721x 1x 1x 1x 1x 1x 1x 1x 1x 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_gui_cfw.clas.abap
class cl_gui_cfw {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_GUI_CFW';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"RC_NOEVENT": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"COMPUTE_PIXEL_FROM_METRIC": {"visibility": "U", "parameters": {"VAL": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "R", "type_name": "IntegerType"}, "X_OR_Y": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CGenericType"}, "IN": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "I", "type_name": "IntegerType"}}},
  "FLUSH": {"visibility": "U", "parameters": {}},
  "SET_NEW_OK_CODE": {"visibility": "U", "parameters": {"NEW_CODE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}, "RC": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}},
  "UPDATE_VIEW": {"visibility": "U", "parameters": {"CALLED_BY_SYSTEM": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " ", "parm_kind": "I", "type_name": "CharacterType"}}},
  "DISPATCH": {"visibility": "U", "parameters": {"RETURN_CODE": {"type": () => {return new abap.types.Integer({qualifiedName: "I"});}, "is_optional": " ", "parm_kind": "E", "type_name": "IntegerType"}}}};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.rc_noevent = cl_gui_cfw.rc_noevent;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async update_view(INPUT) {
    return cl_gui_cfw.update_view(INPUT);
  }
  static async update_view(INPUT) {
    let called_by_system = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.called_by_system) {called_by_system.set(INPUT.called_by_system);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
    abap.builtin.sy.get().subrc.set(0);
  }
  async dispatch(INPUT) {
    return cl_gui_cfw.dispatch(INPUT);
  }
  static async dispatch(INPUT) {
    let return_code = INPUT?.return_code || new abap.types.Integer({qualifiedName: "I"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(4, 'todo')));
  }
  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;
    let rc = INPUT?.rc || new abap.types.Integer({qualifiedName: "I"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(15, 'not implemented')));
  }
}
abap.Classes['CL_GUI_CFW'] = cl_gui_cfw;
cl_gui_cfw.rc_noevent = new abap.types.Integer({qualifiedName: "I"});
cl_gui_cfw.rc_noevent.set(-1);
export {cl_gui_cfw};