All files / output zcl_abapgit_git_tag.clas.mjs

34.78% Statements 24/69
100% Branches 2/2
5.26% Functions 1/19
34.78% Lines 24/69

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 691x 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");
// zcl_abapgit_git_tag.clas.abap
class zcl_abapgit_git_tag {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'ZCL_ABAPGIT_GIT_TAG';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {};
  static METHODS = {"ADD_TAG_PREFIX": {"visibility": "U", "parameters": {"RV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_TEXT": {"type": () => {return new abap.types.Character();}, "is_optional": " "}}},
  "REMOVE_TAG_PREFIX": {"visibility": "U", "parameters": {"RV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "ADD_PEEL": {"visibility": "U", "parameters": {"RV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}}},
  "REMOVE_PEEL": {"visibility": "U", "parameters": {"RV_TEXT": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_TEXT": {"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 add_peel(INPUT) {
    return zcl_abapgit_git_tag.add_peel(INPUT);
  }
  static async add_peel(INPUT) {
    let rv_text = new abap.types.String({qualifiedName: "STRING"});
    let iv_text = INPUT?.iv_text;
    if (iv_text?.getQualifiedName === undefined || iv_text.getQualifiedName() !== "STRING") { iv_text = undefined; }
    if (iv_text === undefined) { iv_text = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_text); }
    rv_text.set(abap.operators.concat(iv_text,abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_git_branch.get().peel));
    return rv_text;
  }
  async add_tag_prefix(INPUT) {
    return zcl_abapgit_git_tag.add_tag_prefix(INPUT);
  }
  static async add_tag_prefix(INPUT) {
    let rv_text = new abap.types.String({qualifiedName: "STRING"});
    let iv_text = INPUT?.iv_text;
    rv_text.set(abap.operators.concat(abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_git_branch.get().tags_prefix,iv_text));
    return rv_text;
  }
  async remove_peel(INPUT) {
    return zcl_abapgit_git_tag.remove_peel(INPUT);
  }
  static async remove_peel(INPUT) {
    let rv_text = new abap.types.String({qualifiedName: "STRING"});
    let iv_text = INPUT?.iv_text;
    if (iv_text?.getQualifiedName === undefined || iv_text.getQualifiedName() !== "STRING") { iv_text = undefined; }
    if (iv_text === undefined) { iv_text = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_text); }
    rv_text.set(iv_text);
    abap.statements.replace({target: rv_text, all: false, with: abap.CharacterFactory.get(1, ''), of: abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_git_branch.get().peel});
    return rv_text;
  }
  async remove_tag_prefix(INPUT) {
    return zcl_abapgit_git_tag.remove_tag_prefix(INPUT);
  }
  static async remove_tag_prefix(INPUT) {
    let rv_text = new abap.types.String({qualifiedName: "STRING"});
    let iv_text = INPUT?.iv_text;
    if (iv_text?.getQualifiedName === undefined || iv_text.getQualifiedName() !== "STRING") { iv_text = undefined; }
    if (iv_text === undefined) { iv_text = new abap.types.String({qualifiedName: "STRING"}).set(INPUT.iv_text); }
    rv_text.set(iv_text);
    abap.statements.replace({target: rv_text, all: false, with: abap.CharacterFactory.get(1, ''), of: abap.Classes['ZIF_ABAPGIT_GIT_DEFINITIONS'].zif_abapgit_git_definitions$c_git_branch.get().tags_prefix});
    return rv_text;
  }
}
abap.Classes['ZCL_ABAPGIT_GIT_TAG'] = zcl_abapgit_git_tag;
export {zcl_abapgit_git_tag};