All files / output cl_sxml_string_reader.clas.mjs

67.64% Statements 23/34
60% Branches 3/5
28.57% Functions 2/7
67.64% Lines 23/34

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 341x 1x 1x 1x 1x 1x 1x 1x 1x 1x             1x       1x     1x 108x 108x 108x 108x 108x 108x 108x 1x 1x 1x
await import("./cl_sxml_string_reader.clas.locals.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_sxml_string_reader.clas.abap
class cl_sxml_string_reader {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_SXML_STRING_READER';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"CREATE": {"visibility": "U", "parameters": {"READER": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "IF_SXML_READER", RTTIName: "\\INTERFACE=IF_SXML_READER"});}, "is_optional": " "}, "INPUT": {"type": () => {return new abap.types.XString({qualifiedName: "XSTRING"});}, "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(INPUT) {
    return cl_sxml_string_reader.create(INPUT);
  }
  static async create(INPUT) {
    let reader = new abap.types.ABAPObject({qualifiedName: "IF_SXML_READER", RTTIName: "\\INTERFACE=IF_SXML_READER"});
    let input = INPUT?.input;
    if (input?.getQualifiedName === undefined || input.getQualifiedName() !== "XSTRING") { input = undefined; }
    if (input === undefined) { input = new abap.types.XString({qualifiedName: "XSTRING"}).set(INPUT.input); }
    reader.set(await (new abap.Classes['CLAS-CL_SXML_STRING_READER-LCL_READER']()).constructor_({iv_json: (await abap.Classes['CL_ABAP_CODEPAGE'].convert_from({source: input}))}));
    return reader;
  }
}
abap.Classes['CL_SXML_STRING_READER'] = cl_sxml_string_reader;
export {cl_sxml_string_reader};