All files / output cl_demo_output.clas.mjs

37.83% Statements 42/111
100% Branches 2/2
2.77% Functions 1/36
37.83% Lines 42/111

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 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 1111x 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     1x           1x       1x     1x         1x     1x     1x     1x           1x     1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_demo_output.clas.abap
class cl_demo_output {
  static STATIC_SUPER = undefined;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_DEMO_OUTPUT';
  static IMPLEMENTED_INTERFACES = ["IF_DEMO_OUTPUT"];
  static ATTRIBUTES = {};
  static METHODS = {"WRITE": {"visibility": "U", "parameters": {"DATA": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}}},
  "CLEAR": {"visibility": "U", "parameters": {}},
  "NEW": {"visibility": "U", "parameters": {"OUTPUT": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "IF_DEMO_OUTPUT", RTTIName: "\\INTERFACE=IF_DEMO_OUTPUT"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}}},
  "DISPLAY": {"visibility": "U", "parameters": {"DATA": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}}},
  "DISPLAY_HTML": {"visibility": "U", "parameters": {"HTML": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CSequenceType"}}},
  "DISPLAY_TEXT": {"visibility": "U", "parameters": {"TEXT": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
  "DISPLAY_JSON": {"visibility": "U", "parameters": {"JSON": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "SimpleType"}}},
  "BEGIN_SECTION": {"visibility": "U", "parameters": {"TITLE": {"type": () => {return new abap.types.Character();}, "is_optional": " ", "parm_kind": "I", "type_name": "CLikeType"}}},
  "DISPLAY_DATA": {"visibility": "U", "parameters": {"VALUE": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "EXCLUDE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}, "INCLUDE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " ", "parm_kind": "I", "type_name": "StringType"}}}};
  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 display_data(INPUT) {
    return cl_demo_output.display_data(INPUT);
  }
  static async display_data(INPUT) {
    let value = INPUT?.value;
    let name = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.name) {name.set(INPUT.name);}
    let exclude = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.exclude) {exclude.set(INPUT.exclude);}
    let include = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.include) {include.set(INPUT.include);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async begin_section(INPUT) {
    return cl_demo_output.begin_section(INPUT);
  }
  static async begin_section(INPUT) {
    let title = INPUT?.title || new abap.types.Character();
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async display_json(INPUT) {
    return cl_demo_output.display_json(INPUT);
  }
  static async display_json(INPUT) {
    let json = INPUT?.json;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async display_text(INPUT) {
    return cl_demo_output.display_text(INPUT);
  }
  static async display_text(INPUT) {
    let text = INPUT?.text;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async display_html(INPUT) {
    return cl_demo_output.display_html(INPUT);
  }
  static async display_html(INPUT) {
    let html = INPUT?.html;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async write(INPUT) {
    return cl_demo_output.write(INPUT);
  }
  static async write(INPUT) {
    let data = INPUT?.data;
    let name = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.name) {name.set(INPUT.name);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async if_demo_output$write(INPUT) {
    let data = INPUT?.data;
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async new() {
    return cl_demo_output.new();
  }
  static async new() {
    let output = new abap.types.ABAPObject({qualifiedName: "IF_DEMO_OUTPUT", RTTIName: "\\INTERFACE=IF_DEMO_OUTPUT"});
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
    return output;
  }
  async clear() {
    return cl_demo_output.clear();
  }
  static async clear() {
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async display(INPUT) {
    return cl_demo_output.display(INPUT);
  }
  static async display(INPUT) {
    let data = INPUT?.data || new abap.types.Character(4);
    let name = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.name) {name.set(INPUT.name);}
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
  async if_demo_output$display() {
    abap.statements.assert(abap.compare.eq(abap.IntegerFactory.get(1), abap.CharacterFactory.get(13, 'not supported')));
  }
}
abap.Classes['CL_DEMO_OUTPUT'] = cl_demo_output;
export {cl_demo_output};