All files / output zcl_abapgit_ajson_filter_lib.clas.locals.mjs

85.71% Statements 192/224
73.46% Branches 36/49
55.55% Functions 15/27
85.71% Lines 192/224

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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 2241x 1x 1x 1x 1x 1x 1x     1x 1x 1x 6x 6x 6x 6x 6x 6x 6x 1x 6x 6x 6x 1x 94x 94x 94x 94x               94x 94x 94x 94x 94x 94x 1x 1x 1x 1x 1x 1x 1x 1x 1x 6x 6x 6x 6x 6x 6x 6x     6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 47x 47x 47x 47x               47x 47x 47x 47x 47x 47x 47x 11x 11x 20x 20x 3x 3x 3x 20x 47x 36x 36x 36x 36x 36x 36x 47x 47x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x     6x 2x 2x 2x 2x 6x 4x 4x 7x 7x       7x 7x 4x 6x 6x 6x 6x 6x 6x 6x 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 4x 4x 4x 4x               4x 4x 4x 4x 4x 4x 8x 8x 8x 1x 1x 8x 3x 4x 1x 1x 1x 1x 1x 1x 2x 2x 2x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x
const {cx_root} = await import("./cx_root.clas.mjs");
// zcl_abapgit_ajson_filter_lib.clas.locals_imp.abap
class lcl_empty_filter {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_AJSON_FILTER_LIB-LCL_EMPTY_FILTER';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_AJSON_FILTER"];
  static ATTRIBUTES = {"ZIF_ABAPGIT_AJSON_FILTER~VISIT_TYPE": {"type": () => {return new abap.types.Structure({
  "value": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
  "open": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
  "close": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {};
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.zif_abapgit_ajson_filter$visit_type = abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async zif_abapgit_ajson_filter$keep_node(INPUT) {
    let rv_keep = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let is_node = INPUT?.is_node;
    if (is_node?.getQualifiedName === undefined || is_node.getQualifiedName() !== "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE") { is_node = undefined; }
    if (is_node === undefined) { is_node = new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-PATH"}),
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-NAME"}),
    "type": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE_TYPE"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-VALUE"}),
    "index": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-INDEX"}),
    "order": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-ORDER"}),
    "children": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-CHILDREN"})}, "zif_abapgit_ajson_types=>ty_node", undefined, {}, {}).set(INPUT.is_node); }
    let iv_visit = new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"});
    if (INPUT && INPUT.iv_visit) {iv_visit.set(INPUT.iv_visit);}
    if (INPUT === undefined || INPUT.iv_visit === undefined) {iv_visit = abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type.get().value;}
    rv_keep.set(abap.builtin.boolc((abap.compare.eq(iv_visit, abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type.get().value) && abap.compare.initial(is_node.get().value) === false) || (abap.compare.ne(iv_visit, abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type.get().value) && abap.compare.gt(is_node.get().children, abap.IntegerFactory.get(0)))));
    return rv_keep;
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_AJSON_FILTER_LIB-LCL_EMPTY_FILTER'] = lcl_empty_filter;
lcl_empty_filter.zif_abapgit_ajson_filter$visit_type = new abap.types.Structure({
"value": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
"open": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
"close": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"})}, undefined, undefined, {}, {});
lcl_empty_filter.zif_abapgit_ajson_filter$visit_type.get().value.set(0);
lcl_empty_filter.zif_abapgit_ajson_filter$visit_type.get().open.set(1);
lcl_empty_filter.zif_abapgit_ajson_filter$visit_type.get().close.set(2);
class lcl_paths_filter {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_AJSON_FILTER_LIB-LCL_PATHS_FILTER';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_AJSON_FILTER"];
  static ATTRIBUTES = {"MT_SKIP_PATHS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "");}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "MV_PATTERN_SEARCH": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "ZIF_ABAPGIT_AJSON_FILTER~VISIT_TYPE": {"type": () => {return new abap.types.Structure({
  "value": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
  "open": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
  "close": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"IT_SKIP_PATHS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");}, "is_optional": " "}, "IV_SKIP_PATHS": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "is_optional": " "}, "IV_PATTERN_SEARCH": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});}, "is_optional": " "}}}};
  #mt_skip_paths;
  #mv_pattern_search;
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.#mt_skip_paths = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"HASHED","isUnique":true,"keyFields":["TABLE_LINE"]},"secondary":[]}, "");
    this.FRIENDS_ACCESS_INSTANCE["mt_skip_paths"] = this.#mt_skip_paths;
    this.#mv_pattern_search = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    this.FRIENDS_ACCESS_INSTANCE["mv_pattern_search"] = this.#mv_pattern_search;
    this.zif_abapgit_ajson_filter$visit_type = abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type;
  }
  async zif_abapgit_ajson_filter$keep_node(INPUT) {
    let rv_keep = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let is_node = INPUT?.is_node;
    if (is_node?.getQualifiedName === undefined || is_node.getQualifiedName() !== "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE") { is_node = undefined; }
    if (is_node === undefined) { is_node = new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-PATH"}),
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-NAME"}),
    "type": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE_TYPE"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-VALUE"}),
    "index": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-INDEX"}),
    "order": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-ORDER"}),
    "children": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-CHILDREN"})}, "zif_abapgit_ajson_types=>ty_node", undefined, {}, {}).set(INPUT.is_node); }
    let iv_visit = new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"});
    if (INPUT && INPUT.iv_visit) {iv_visit.set(INPUT.iv_visit);}
    if (INPUT === undefined || INPUT.iv_visit === undefined) {iv_visit = abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type.get().value;}
    let lv_full_path = new abap.types.String({qualifiedName: "STRING"});
    let fs_p_ = new abap.types.FieldSymbol(new abap.types.String({qualifiedName: "STRING"}));
    lv_full_path.set(abap.operators.concat(is_node.get().path,is_node.get().name));
    if (abap.compare.eq(this.#mv_pattern_search, abap.builtin.abap_true)) {
      rv_keep.set(abap.builtin.abap_true);
      for await (const unique286 of abap.statements.loop(this.#mt_skip_paths)) {
        fs_p_.assign(unique286);
        if (abap.compare.cp(lv_full_path, fs_p_)) {
          rv_keep.set(abap.builtin.abap_false);
          break;
        }
      }
    } else {
      abap.statements.readTable(this.#mt_skip_paths,{withKey: (i) => {return abap.compare.eq(i.table_line, lv_full_path);},
        withKeyValue: [{key: (i) => {return i.table_line}, value: lv_full_path}],
        usesTableLine: true,
        withKeySimple: {"table_line": lv_full_path}});
      rv_keep.set(abap.builtin.boolc(abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))));
    }
    return rv_keep;
  }
  async constructor_(INPUT) {
    let it_skip_paths = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");
    if (INPUT && INPUT.it_skip_paths) {it_skip_paths.set(INPUT.it_skip_paths);}
    let iv_skip_paths = new abap.types.String({qualifiedName: "STRING"});
    if (INPUT && INPUT.iv_skip_paths) {iv_skip_paths.set(INPUT.iv_skip_paths);}
    let iv_pattern_search = INPUT?.iv_pattern_search;
    if (iv_pattern_search?.getQualifiedName === undefined || iv_pattern_search.getQualifiedName() !== "ABAP_BOOL") { iv_pattern_search = undefined; }
    if (iv_pattern_search === undefined) { iv_pattern_search = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}).set(INPUT.iv_pattern_search); }
    let lv_s = new abap.types.String({qualifiedName: "STRING"});
    let lt_tab = abap.types.TableFactory.construct(new abap.types.String({qualifiedName: "STRING"}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"isUnique":false,"type":"STANDARD","keyFields":[],"name":"primary_key"},"secondary":[]}, "STRING_TABLE");
    let fs_s_ = new abap.types.FieldSymbol(new abap.types.String({qualifiedName: "STRING"}));
    if (abap.compare.eq(abap.builtin.boolc(abap.compare.initial(iv_skip_paths)), abap.builtin.boolc(abap.compare.initial(it_skip_paths)))) {
      await abap.Classes['ZCX_ABAPGIT_AJSON_ERROR'].raise({iv_msg: abap.CharacterFactory.get(24, 'no filter path specified')});
    }
    for await (const unique287 of abap.statements.loop(it_skip_paths)) {
      lv_s.set(unique287);
      lv_s.set(abap.builtin.condense({val: lv_s}));
      abap.statements.append({source: lv_s, target: lt_tab});
    }
    if (abap.compare.initial(iv_skip_paths) === false) {
      abap.statements.split({source: iv_skip_paths, at: abap.CharacterFactory.get(1, ','), table: lt_tab});
      for await (const unique288 of abap.statements.loop(lt_tab)) {
        fs_s_.assign(unique288);
        if (abap.compare.initial(fs_s_)) {
          await abap.statements.deleteInternal(lt_tab,{index: abap.builtin.sy.get().tabix});
          continue;
        }
        fs_s_.set(abap.builtin.condense({val: fs_s_}));
      }
    }
    abap.statements.sort(lt_tab,{by: [{component: "table_line"}]});
    await abap.statements.deleteInternal(lt_tab,{adjacent: true});
    this.#mt_skip_paths.set(lt_tab);
    this.#mv_pattern_search.set(iv_pattern_search);
    return this;
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_AJSON_FILTER_LIB-LCL_PATHS_FILTER'] = lcl_paths_filter;
lcl_paths_filter.zif_abapgit_ajson_filter$visit_type = new abap.types.Structure({
"value": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
"open": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
"close": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"})}, undefined, undefined, {}, {});
lcl_paths_filter.zif_abapgit_ajson_filter$visit_type.get().value.set(0);
lcl_paths_filter.zif_abapgit_ajson_filter$visit_type.get().open.set(1);
lcl_paths_filter.zif_abapgit_ajson_filter$visit_type.get().close.set(2);
class lcl_and_filter {
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CLAS-ZCL_ABAPGIT_AJSON_FILTER_LIB-LCL_AND_FILTER';
  static IMPLEMENTED_INTERFACES = ["ZIF_ABAPGIT_AJSON_FILTER"];
  static ATTRIBUTES = {"MT_FILTERS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_AJSON_FILTER"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_ajson_filter=>ty_filter_tab");}, "visibility": "I", "is_constant": " ", "is_class": " "},
  "ZIF_ABAPGIT_AJSON_FILTER~VISIT_TYPE": {"type": () => {return new abap.types.Structure({
  "value": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
  "open": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
  "close": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"})}, undefined, undefined, {}, {});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"IT_FILTERS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_AJSON_FILTER"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_ajson_filter=>ty_filter_tab");}, "is_optional": " "}}}};
  #mt_filters;
  constructor() {
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
    };
    this.#mt_filters = abap.types.TableFactory.construct(new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_AJSON_FILTER"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_ajson_filter=>ty_filter_tab");
    this.FRIENDS_ACCESS_INSTANCE["mt_filters"] = this.#mt_filters;
    this.zif_abapgit_ajson_filter$visit_type = abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type;
  }
  async zif_abapgit_ajson_filter$keep_node(INPUT) {
    let rv_keep = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
    let is_node = INPUT?.is_node;
    if (is_node?.getQualifiedName === undefined || is_node.getQualifiedName() !== "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE") { is_node = undefined; }
    if (is_node === undefined) { is_node = new abap.types.Structure({
    "path": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-PATH"}),
    "name": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-NAME"}),
    "type": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE_TYPE"}),
    "value": new abap.types.String({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-VALUE"}),
    "index": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-INDEX"}),
    "order": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-ORDER"}),
    "children": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_TYPES=>TY_NODE-CHILDREN"})}, "zif_abapgit_ajson_types=>ty_node", undefined, {}, {}).set(INPUT.is_node); }
    let iv_visit = new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"});
    if (INPUT && INPUT.iv_visit) {iv_visit.set(INPUT.iv_visit);}
    if (INPUT === undefined || INPUT.iv_visit === undefined) {iv_visit = abap.Classes['ZIF_ABAPGIT_AJSON_FILTER'].zif_abapgit_ajson_filter$visit_type.get().value;}
    let li_filter = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_AJSON_FILTER"});
    rv_keep.set(abap.builtin.abap_true);
    for await (const unique289 of abap.statements.loop(this.#mt_filters)) {
      li_filter.set(unique289);
      rv_keep.set((await li_filter.get().zif_abapgit_ajson_filter$keep_node({is_node: is_node, iv_visit: iv_visit})));
      if (abap.compare.eq(rv_keep, abap.builtin.abap_false)) {
        return rv_keep;
      }
    }
    return rv_keep;
  }
  async constructor_(INPUT) {
    let it_filters = INPUT?.it_filters;
    if (it_filters?.getQualifiedName === undefined || it_filters.getQualifiedName() !== "ZIF_ABAPGIT_AJSON_FILTER=>TY_FILTER_TAB") { it_filters = undefined; }
    if (it_filters === undefined) { it_filters = abap.types.TableFactory.construct(new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_AJSON_FILTER"}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["TABLE_LINE"]},"secondary":[]}, "zif_abapgit_ajson_filter=>ty_filter_tab").set(INPUT.it_filters); }
    let li_filter = new abap.types.ABAPObject({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER", RTTIName: "\\INTERFACE=ZIF_ABAPGIT_AJSON_FILTER"});
    for await (const unique290 of abap.statements.loop(it_filters,{where: async (I) => {return abap.compare.initial(I.table_line) === false;}})) {
      li_filter.set(unique290);
      abap.statements.append({source: li_filter, target: this.#mt_filters});
    }
    return this;
  }
}
abap.Classes['CLAS-ZCL_ABAPGIT_AJSON_FILTER_LIB-LCL_AND_FILTER'] = lcl_and_filter;
lcl_and_filter.zif_abapgit_ajson_filter$visit_type = new abap.types.Structure({
"value": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
"open": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"}),
"close": new abap.types.Integer({qualifiedName: "ZIF_ABAPGIT_AJSON_FILTER=>TY_VISIT_TYPE"})}, undefined, undefined, {}, {});
lcl_and_filter.zif_abapgit_ajson_filter$visit_type.get().value.set(0);
lcl_and_filter.zif_abapgit_ajson_filter$visit_type.get().open.set(1);
lcl_and_filter.zif_abapgit_ajson_filter$visit_type.get().close.set(2);
export {lcl_empty_filter, lcl_paths_filter, lcl_and_filter};