All files / output cl_abap_browser.clas.mjs

31.57% Statements 18/57
100% Branches 2/2
5.88% Functions 1/17
31.57% Lines 18/57

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 571x 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_abap_browser.clas.abap
class cl_abap_browser {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_ABAP_BROWSER';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"SHOW_XML": {"visibility": "U", "parameters": {"XML_STRING": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "CONTAINER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " "}, "DIALOG": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "PRINTING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}},
  "SHOW_HTML": {"visibility": "U", "parameters": {"HTML_STRING": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "TITLE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "CONTAINER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});}, "is_optional": " "}, "DIALOG": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}, "PRINTING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "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 show_xml(INPUT) {
    return cl_abap_browser.show_xml(INPUT);
  }
  static async show_xml(INPUT) {
    let xml_string = INPUT?.xml_string;
    if (xml_string?.getQualifiedName === undefined || xml_string.getQualifiedName() !== "STRING") { xml_string = undefined; }
    if (xml_string === undefined) { xml_string = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.xml_string); }
    let title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.title) {title.set(INPUT.title);}
    let container = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    if (INPUT && INPUT.container) {container.set(INPUT.container);}
    let dialog = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.dialog) {dialog.set(INPUT.dialog);}
    let printing = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.printing) {printing.set(INPUT.printing);}
    return;
  }
  async show_html(INPUT) {
    return cl_abap_browser.show_html(INPUT);
  }
  static async show_html(INPUT) {
    let html_string = INPUT?.html_string;
    if (html_string?.getQualifiedName === undefined || html_string.getQualifiedName() !== "STRING") { html_string = undefined; }
    if (html_string === undefined) { html_string = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.html_string); }
    let title = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.title) {title.set(INPUT.title);}
    let container = new abap.types.ABAPObject({qualifiedName: "CL_GUI_CONTAINER", RTTIName: "\\CLASS=CL_GUI_CONTAINER"});
    if (INPUT && INPUT.container) {container.set(INPUT.container);}
    let dialog = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.dialog) {dialog.set(INPUT.dialog);}
    let printing = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    if (INPUT && INPUT.printing) {printing.set(INPUT.printing);}
    return;
  }
}
abap.Classes['CL_ABAP_BROWSER'] = cl_abap_browser;
export {cl_abap_browser};