All files / output cl_abap_conv_codepage.clas.mjs

71.73% Statements 33/46
40% Branches 4/10
27.27% Functions 3/11
71.73% Lines 33/46

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 461x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x             1x       1x     1x 1x 1x 1x 1x 1x 1x 1x 1x     1x 109x 109x 109x 109x 109x 109x 109x 1x 1x 1x
await import("./cl_abap_conv_codepage.clas.locals.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_abap_conv_codepage.clas.abap
class cl_abap_conv_codepage {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_ABAP_CONV_CODEPAGE';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"CREATE_IN": {"visibility": "U", "parameters": {"INSTANCE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "IF_ABAP_CONV_IN", RTTIName: "\\INTERFACE=IF_ABAP_CONV_IN"});}, "is_optional": " "}, "CODEPAGE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "CREATE_OUT": {"visibility": "U", "parameters": {"INSTANCE": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "IF_ABAP_CONV_OUT", RTTIName: "\\INTERFACE=IF_ABAP_CONV_OUT"});}, "is_optional": " "}, "CODEPAGE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "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 create_in(INPUT) {
    return cl_abap_conv_codepage.create_in(INPUT);
  }
  static async create_in(INPUT) {
    let instance = new abap.types.ABAPObject({qualifiedName: "IF_ABAP_CONV_IN", RTTIName: "\\INTERFACE=IF_ABAP_CONV_IN"});
    let codepage = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.codepage) {codepage.set(INPUT.codepage);}
    if (INPUT === undefined || INPUT.codepage === undefined) {codepage = abap.CharacterFactory.get(5, 'UTF-8');}
    instance.set(await (new abap.Classes['CLAS-CL_ABAP_CONV_CODEPAGE-LCL_IN']()).constructor_({codepage: codepage}));
    return instance;
  }
  async create_out(INPUT) {
    return cl_abap_conv_codepage.create_out(INPUT);
  }
  static async create_out(INPUT) {
    let instance = new abap.types.ABAPObject({qualifiedName: "IF_ABAP_CONV_OUT", RTTIName: "\\INTERFACE=IF_ABAP_CONV_OUT"});
    let codepage = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.codepage) {codepage.set(INPUT.codepage);}
    if (INPUT === undefined || INPUT.codepage === undefined) {codepage = abap.CharacterFactory.get(5, 'UTF-8');}
    instance.set(await (new abap.Classes['CLAS-CL_ABAP_CONV_CODEPAGE-LCL_OUT']()).constructor_({codepage: codepage}));
    return instance;
  }
}
abap.Classes['CL_ABAP_CONV_CODEPAGE'] = cl_abap_conv_codepage;
export {cl_abap_conv_codepage};