All files / output cl_abap_objectdescr.clas.mjs

72.58% Statements 331/456
70.96% Branches 22/31
17.07% Functions 7/41
72.58% Lines 331/456

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 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 4561x 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 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 20x 1x 20x 20x 20x 1x     1x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 80x 69x 69x 69x 80x 6x 80x 5x 5x 11x 11x 11x 11x 80x 4x 4x 4x 4x 11x 80x 83x 83x 83x 83x 83x 83x 238x 238x 238x 238x 238x 238x 238x 238x 238x 238x 8x 8x 238x     230x 230x 230x 230x 230x 230x 230x 238x 238x 83x 11x 11x 80x 1x     1x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x 11x             11x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 31x 11x 11x 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 {cl_abap_typedescr} = await import("./cl_abap_typedescr.clas.mjs");
const {cx_root} = await import("./cx_root.clas.mjs");
// cl_abap_objectdescr.clas.abap
class cl_abap_objectdescr extends cl_abap_typedescr {
  static STATIC_SUPER = cl_abap_typedescr;
  static INTERNAL_TYPE = 'CLAS';
  static INTERNAL_NAME = 'CL_ABAP_OBJECTDESCR';
  static IMPLEMENTED_INTERFACES = [];
  static ATTRIBUTES = {"MT_CACHE": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_CACHE-NAME"}),
  "descr": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"})}, "cl_abap_objectdescr=>ty_cache", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "");}, "visibility": "O", "is_constant": " ", "is_class": "X"},
  "ATTRIBUTES": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
  "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
  "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
  "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
  "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
  "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_constant": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_virtual": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_read_only": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_attrname"})}, "abap_attrdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_attrdescr_tab");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "METHODS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "parameters": abap.types.TableFactory.construct(new abap.types.Structure({
  "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
  "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
  "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
  "name": new abap.types.Character(30, {"qualifiedName":"abap_parmname"}),
  "parm_kind": new abap.types.Character(1, {"qualifiedName":"abap_parmkind"}),
  "by_value": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_optional": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_parmdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_parmdescr_tab"),
  "exceptions": abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.Character(30, {"qualifiedName":"abap_excpname"}),
  "is_resumable": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_excpdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_excpdescr_tab"),
  "name": new abap.types.Character(61, {"qualifiedName":"abap_methname"}),
  "for_event": new abap.types.Character(61, {"qualifiedName":"abap_evntname"}),
  "of_class": new abap.types.Character(30, {"qualifiedName":"abap_classname"}),
  "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
  "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_redefined": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_abstract": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_final": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_methname"}),
  "is_raising_excps": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_methdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_methdescr_tab");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "INTERFACES": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.Character(30, {"qualifiedName":"abap_intfname"}),
  "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_intfdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_intfdescr_tab");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "TYPES": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.Character(61, {"qualifiedName":"abap_typename"}),
  "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_typename"}),
  "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
  "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_typedef", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_typedef_tab");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "EVENTS": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "parameters": abap.types.TableFactory.construct(new abap.types.Structure({
  "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
  "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
  "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
  "name": new abap.types.Character(30, {"qualifiedName":"abap_parmname"}),
  "parm_kind": new abap.types.Character(1, {"qualifiedName":"abap_parmkind"}),
  "by_value": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_optional": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_parmdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_parmdescr_tab"),
  "name": new abap.types.Character(61, {"qualifiedName":"abap_evntname"}),
  "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
  "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
  "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_evntname"})}, "abap_evntdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_evntdescr_tab");}, "visibility": "U", "is_constant": " ", "is_class": " "},
  "MV_OBJECT_NAME": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "O", "is_constant": " ", "is_class": " "},
  "MV_OBJECT_TYPE": {"type": () => {return new abap.types.String({qualifiedName: "STRING"});}, "visibility": "O", "is_constant": " ", "is_class": " "},
  "MT_ATTRIBUTE_TYPES": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "cl_abap_objectdescr=>ty_attribute_types", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");}, "visibility": "O", "is_constant": " ", "is_class": " "},
  "MT_PARAMETER_TYPES": {"type": () => {return abap.types.TableFactory.construct(new abap.types.Structure({
  "method": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-METHOD"}),
  "parameter": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-PARAMETER"}),
  "type": new abap.types.DataReference(new abap.types.Character(4)),
  "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"})}, "cl_abap_objectdescr=>ty_parameter_types", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");}, "visibility": "O", "is_constant": " ", "is_class": " "},
  "CHANGING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "EXPORTING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "IMPORTING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "RECEIVING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "RETURNING": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PRIVATE": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_visibility"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PROTECTED": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_visibility"});}, "visibility": "U", "is_constant": "X", "is_class": "X"},
  "PUBLIC": {"type": () => {return new abap.types.Character(1, {"qualifiedName":"abap_visibility"});}, "visibility": "U", "is_constant": "X", "is_class": "X"}};
  static METHODS = {"ADD_ATTRIBUTES": {"visibility": "O", "parameters": {"P_OBJECT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "DESCR": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"});}, "is_optional": " ", "parm_kind": "I", "type_name": "ObjectReferenceType"}}},
  "_CONSTRUCT": {"visibility": "U", "parameters": {"DESCR": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "P_OBJECT": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "GET_ATTRIBUTE_TYPE": {"visibility": "U", "parameters": {"P_DESCR_REF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "P_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "GET_METHOD_PARAMETER_TYPE": {"visibility": "U", "parameters": {"P_DESCR_REF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "P_METHOD_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}, "P_PARAMETER_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}},
  "GET_INTERFACE_TYPE": {"visibility": "U", "parameters": {"P_DESCR_REF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: "CL_ABAP_INTFDESCR", RTTIName: "\\CLASS=CL_ABAP_INTFDESCR"});}, "is_optional": " ", "parm_kind": "R", "type_name": "ObjectReferenceType"}, "P_NAME": {"type": () => {return new abap.types.Character(4);}, "is_optional": " ", "parm_kind": "I", "type_name": "AnyType"}}}};
  constructor() {
    const sup = super();
    this.me = new abap.types.ABAPObject();
    this.me.set(this);
    this.INTERNAL_ID = abap.internalIdCounter++;
    this.FRIENDS_ACCESS_INSTANCE = {
      "SUPER": sup.FRIENDS_ACCESS_INSTANCE,
      "get_attribute_type": this.get_attribute_type.bind(this),
      "get_method_parameter_type": this.get_method_parameter_type.bind(this),
      "get_interface_type": this.get_interface_type.bind(this),
    };
    this.mt_cache = cl_abap_objectdescr.mt_cache;
    this.attributes = abap.types.TableFactory.construct(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
    "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_constant": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_virtual": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_read_only": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_attrname"})}, "abap_attrdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_attrdescr_tab");
    this.methods = abap.types.TableFactory.construct(new abap.types.Structure({
    "parameters": abap.types.TableFactory.construct(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "name": new abap.types.Character(30, {"qualifiedName":"abap_parmname"}),
    "parm_kind": new abap.types.Character(1, {"qualifiedName":"abap_parmkind"}),
    "by_value": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_optional": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_parmdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_parmdescr_tab"),
    "exceptions": abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.Character(30, {"qualifiedName":"abap_excpname"}),
    "is_resumable": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_excpdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_excpdescr_tab"),
    "name": new abap.types.Character(61, {"qualifiedName":"abap_methname"}),
    "for_event": new abap.types.Character(61, {"qualifiedName":"abap_evntname"}),
    "of_class": new abap.types.Character(30, {"qualifiedName":"abap_classname"}),
    "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
    "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_redefined": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_abstract": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_final": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_methname"}),
    "is_raising_excps": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_methdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_methdescr_tab");
    this.interfaces = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.Character(30, {"qualifiedName":"abap_intfname"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_intfdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_intfdescr_tab");
    this.types = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.Character(61, {"qualifiedName":"abap_typename"}),
    "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_typename"}),
    "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
    "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_typedef", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_typedef_tab");
    this.events = abap.types.TableFactory.construct(new abap.types.Structure({
    "parameters": abap.types.TableFactory.construct(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "name": new abap.types.Character(30, {"qualifiedName":"abap_parmname"}),
    "parm_kind": new abap.types.Character(1, {"qualifiedName":"abap_parmkind"}),
    "by_value": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_optional": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_parmdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_parmdescr_tab"),
    "name": new abap.types.Character(61, {"qualifiedName":"abap_evntname"}),
    "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
    "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_evntname"})}, "abap_evntdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_evntdescr_tab");
    this.mv_object_name = new abap.types.String({qualifiedName: "STRING"});
    this.mv_object_type = new abap.types.String({qualifiedName: "STRING"});
    this.mt_attribute_types = abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "cl_abap_objectdescr=>ty_attribute_types", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
    this.mt_parameter_types = abap.types.TableFactory.construct(new abap.types.Structure({
    "method": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-METHOD"}),
    "parameter": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-PARAMETER"}),
    "type": new abap.types.DataReference(new abap.types.Character(4)),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"})}, "cl_abap_objectdescr=>ty_parameter_types", undefined, {}, {}), {"withHeader":false,"keyType":"DEFAULT","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
    this.changing = cl_abap_objectdescr.changing;
    this.exporting = cl_abap_objectdescr.exporting;
    this.importing = cl_abap_objectdescr.importing;
    this.receiving = cl_abap_objectdescr.receiving;
    this.returning = cl_abap_objectdescr.returning;
    this.private = cl_abap_objectdescr.private;
    this.protected = cl_abap_objectdescr.protected;
    this.public = cl_abap_objectdescr.public;
  }
  async constructor_(INPUT) {
    if (super.constructor_) { await super.constructor_(INPUT); }
    return this;
  }
  async _construct(INPUT) {
    return cl_abap_objectdescr._construct(INPUT);
  }
  static async _construct(INPUT) {
    let descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"});
    let p_object = INPUT?.p_object || new abap.types.Character(4);
    let ls_cache = new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_CACHE-NAME"}),
    "descr": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"})}, "cl_abap_objectdescr=>ty_cache", undefined, {}, {});
    let lv_name = new abap.types.Character(61, {"qualifiedName":"abap_attrname"});
    let lv_char1 = new abap.types.Character(1, {});
    let lv_any = new abap.types.String({qualifiedName: "STRING"});
    let lo_type = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_TYPEDESCR", RTTIName: "\\CLASS=CL_ABAP_TYPEDESCR"});
    let lv_type_name = new abap.types.String({qualifiedName: "STRING"});
    let lv_parm_kind = new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});
    let fs_intf_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.Character(30, {"qualifiedName":"abap_intfname"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_intfdescr", undefined, {}, {}));
    let fs_method_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "parameters": abap.types.TableFactory.construct(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "name": new abap.types.Character(30, {"qualifiedName":"abap_parmname"}),
    "parm_kind": new abap.types.Character(1, {"qualifiedName":"abap_parmkind"}),
    "by_value": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_optional": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_parmdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_parmdescr_tab"),
    "exceptions": abap.types.TableFactory.construct(new abap.types.Structure({
    "name": new abap.types.Character(30, {"qualifiedName":"abap_excpname"}),
    "is_resumable": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_excpdescr", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":["NAME"]},"secondary":[]}, "abap_excpdescr_tab"),
    "name": new abap.types.Character(61, {"qualifiedName":"abap_methname"}),
    "for_event": new abap.types.Character(61, {"qualifiedName":"abap_evntname"}),
    "of_class": new abap.types.Character(30, {"qualifiedName":"abap_classname"}),
    "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
    "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_redefined": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_abstract": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_final": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_methname"}),
    "is_raising_excps": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_methdescr", undefined, {}, {}));
    let fs_parameter_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "name": new abap.types.Character(30, {"qualifiedName":"abap_parmname"}),
    "parm_kind": new abap.types.Character(1, {"qualifiedName":"abap_parmkind"}),
    "by_value": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_optional": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"})}, "abap_parmdescr", undefined, {}, {}));
    let fs_ptype_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "method": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-METHOD"}),
    "parameter": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-PARAMETER"}),
    "type": new abap.types.DataReference(new abap.types.Character(4)),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"})}, "cl_abap_objectdescr=>ty_parameter_types", undefined, {}, {}));
    lv_name.set(p_object.INTERNAL_NAME);
    abap.statements.readTable(cl_abap_objectdescr.mt_cache,{into: ls_cache,
      withKey: (i) => {return abap.compare.eq(i.name, lv_name);},
      withKeyValue: [{key: (i) => {return i.name}, value: lv_name}],
      usesTableLine: false,
      withKeySimple: {"name": lv_name}});
    if (abap.compare.eq(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
      descr.set(ls_cache.get().descr);
      return descr;
    }
    if (p_object.INTERNAL_TYPE === "CLAS") {
      descr.set(await (new abap.Classes['CL_ABAP_CLASSDESCR']()).constructor_());
    } else {
      descr.set(await (new abap.Classes['CL_ABAP_INTFDESCR']()).constructor_());
    }
    abap.statements.insertInternal({data: new abap.types.Structure({
    "name": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_CACHE-NAME"}),
    "descr": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"})}, "cl_abap_objectdescr=>ty_cache", undefined, {}, {}).setField("name", lv_name).setField("descr", descr), table: cl_abap_objectdescr.mt_cache});
    await this.add_attributes({p_object: p_object, descr: descr});
    for (const a of p_object?.IMPLEMENTED_INTERFACES || []) {
        lv_name.set(a);
      fs_intf_.assign(descr.get().interfaces.appendInitial());
      fs_intf_.get().name.set(lv_name);
    }
    abap.statements.sort(descr.get().interfaces,{by: [{component: "name"}]});
    for (const a in p_object?.METHODS || []) {
        lv_name.set(a);
      fs_method_.assign(descr.get().methods.appendInitial());
      fs_method_.get().name.set(lv_name);
        lv_char1.set(p_object.METHODS[a].visibility);
      fs_method_.get().visibility.set(lv_char1);
      for (const p in p_object.METHODS[a].parameters || []) {
        fs_ptype_.assign(descr.get().mt_parameter_types.appendInitial());
        fs_parameter_.assign(fs_method_.get().parameters.appendInitial());
        fs_ptype_.get().method.set(fs_method_.get().name);
          lv_name.set(p);
        fs_parameter_.get().name.set(lv_name);
        fs_ptype_.get().parameter.set(lv_name);
          lv_any = p_object.METHODS[a].parameters[p].type();
          lv_type_name = p_object.METHODS[a].parameters[p].type_name;
          lv_parm_kind = p_object.METHODS[a].parameters[p].parm_kind;
        if (abap.compare.eq(lv_type_name, abap.CharacterFactory.get(9, 'CLikeType'))) {
          fs_parameter_.get().type_kind.set(abap.Classes['CL_ABAP_TYPEDESCR'].typekind_clike);
          fs_ptype_.get().type_kind.set(abap.Classes['CL_ABAP_TYPEDESCR'].typekind_clike);
        } else if (abap.compare.eq(lv_type_name, abap.CharacterFactory.get(13, 'CSequenceType'))) {
          fs_parameter_.get().type_kind.set(abap.Classes['CL_ABAP_TYPEDESCR'].typekind_csequence);
          fs_ptype_.get().type_kind.set(abap.Classes['CL_ABAP_TYPEDESCR'].typekind_csequence);
        } else {
          abap.statements.getReference(fs_ptype_.get().type, lv_any);
          lo_type.set((await this.describe_by_data({p_data: lv_any})));
          fs_parameter_.get().type_kind.set(lo_type.get().type_kind);
          fs_parameter_.get().length.set(lo_type.get().length);
          fs_parameter_.get().decimals.set(lo_type.get().decimals);
        }
        fs_parameter_.get().parm_kind.set(lv_parm_kind);
      }
    }
    abap.statements.sort(descr.get().methods,{by: [{component: "name"}]});
    return descr;
  }
  async add_attributes(INPUT) {
    return cl_abap_objectdescr.add_attributes(INPUT);
  }
  static async add_attributes(INPUT) {
    let p_object = INPUT?.p_object;
    let descr = INPUT?.descr;
    if (descr?.getQualifiedName === undefined || descr.getQualifiedName() !== "CL_ABAP_OBJECTDESCR") { descr = undefined; }
    if (descr === undefined) { descr = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"}).set(INPUT.descr); }
    let lv_name = new abap.types.Character(61, {"qualifiedName":"abap_attrname"});
    let lv_char1 = new abap.types.Character(1, {});
    let lv_any = new abap.types.String({qualifiedName: "STRING"});
    let fs_attr_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "length": new abap.types.Integer({qualifiedName: "LENGTH"}),
    "decimals": new abap.types.Integer({qualifiedName: "DECIMALS"}),
    "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
    "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"}),
    "visibility": new abap.types.Character(1, {"qualifiedName":"abap_visibility"}),
    "is_interface": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_inherited": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_class": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_constant": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_virtual": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "is_read_only": new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"}),
    "alias_for": new abap.types.Character(61, {"qualifiedName":"abap_attrname"})}, "abap_attrdescr", undefined, {}, {}));
    let fs_atype_ = new abap.types.FieldSymbol(new abap.types.Structure({
    "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
    "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "cl_abap_objectdescr=>ty_attribute_types", undefined, {}, {}));
    let allAttributes = p_object?.ATTRIBUTES || {};
    let currentObj = p_object?.STATIC_SUPER;
    while (currentObj !== undefined) {
        for (const a in currentObj.ATTRIBUTES) {
            if (currentObj.ATTRIBUTES[a].visibility === "I") { continue; }
            allAttributes[a] = currentObj.ATTRIBUTES[a];
          }
          currentObj = currentObj.STATIC_SUPER;
      }
      for (const a in allAttributes) {
          lv_name.set(a);
        fs_attr_.assign(descr.get().attributes.appendInitial());
        fs_atype_.assign(descr.get().mt_attribute_types.appendInitial());
        fs_attr_.get().name.set(lv_name);
        fs_atype_.get().name.set(lv_name);
        fs_attr_.get().is_interface.set(abap.builtin.boolc(abap.compare.ca(lv_name, abap.CharacterFactory.get(1, '~'))));
          lv_char1.set(p_object.ATTRIBUTES[a].is_constant);
        fs_attr_.get().is_constant.set(lv_char1);
          lv_char1.set(p_object.ATTRIBUTES[a].is_class || "");
        fs_attr_.get().is_class.set(lv_char1);
          lv_char1.set(p_object.ATTRIBUTES[a].visibility);
        fs_attr_.get().visibility.set(lv_char1);
          lv_any = p_object.ATTRIBUTES[a].type();
        await abap.statements.cast(fs_atype_.get().type, (await this.describe_by_data({p_data: lv_any})));
        fs_attr_.get().type_kind.set(fs_atype_.get().type.get().type_kind);
        fs_attr_.get().length.set(fs_atype_.get().type.get().length);
        fs_attr_.get().decimals.set(fs_atype_.get().type.get().decimals);
      }
      abap.statements.sort(descr.get().attributes,{by: [{component: "is_interface", descending: true},{component: "name"}]});
    }
    async get_method_parameter_type(INPUT) {
      let p_descr_ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});
      let p_method_name = INPUT?.p_method_name;
      let p_parameter_name = INPUT?.p_parameter_name;
      let ls_row = new abap.types.Structure({
      "method": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-METHOD"}),
      "parameter": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-PARAMETER"}),
      "type": new abap.types.DataReference(new abap.types.Character(4)),
      "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"})}, "cl_abap_objectdescr=>ty_parameter_types", undefined, {}, {});
      let fs_type_ = new abap.types.FieldSymbol(new abap.types.Character(4));
      abap.statements.readTable(this.mt_parameter_types,{into: ls_row,
        withKey: (i) => {return abap.compare.eq(i.method, p_method_name) && abap.compare.eq(i.parameter, p_parameter_name);},
        withKeyValue: [{key: (i) => {return i.method}, value: p_method_name},{key: (i) => {return i.parameter}, value: p_parameter_name}],
        usesTableLine: false,
        withKeySimple: {"method": p_method_name,"parameter": p_parameter_name}});
      if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        throw new abap.ClassicError({classic: "parameter_not_found"});
      }
      if (abap.compare.eq(ls_row.get().type_kind, abap.Classes['CL_ABAP_TYPEDESCR'].typekind_clike)) {
        p_descr_ref.set(await (new abap.Classes['CL_ABAP_ELEMDESCR']()).constructor_());
        p_descr_ref.get().absolute_name.set(abap.CharacterFactory.get(11, '\\TYPE=CLIKE'));
        p_descr_ref.get().kind.set(abap.Classes['CL_ABAP_ELEMDESCR'].kind_elem);
        p_descr_ref.get().type_kind.set(abap.Classes['CL_ABAP_TYPEDESCR'].typekind_clike);
      } else if (abap.compare.eq(ls_row.get().type_kind, abap.Classes['CL_ABAP_TYPEDESCR'].typekind_csequence)) {
        p_descr_ref.set(await (new abap.Classes['CL_ABAP_ELEMDESCR']()).constructor_());
        p_descr_ref.get().absolute_name.set(abap.CharacterFactory.get(15, '\\TYPE=CSEQUENCE'));
        p_descr_ref.get().kind.set(abap.Classes['CL_ABAP_ELEMDESCR'].kind_elem);
        p_descr_ref.get().type_kind.set(abap.Classes['CL_ABAP_TYPEDESCR'].typekind_csequence);
      } else {
        abap.statements.assign({target: fs_type_, source: ls_row.get().type.dereference()});
        await abap.statements.cast(p_descr_ref, (await this.describe_by_data({p_data: fs_type_})));
      }
      return p_descr_ref;
    }
    async get_interface_type(INPUT) {
      let p_descr_ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_INTFDESCR", RTTIName: "\\CLASS=CL_ABAP_INTFDESCR"});
      let p_name = INPUT?.p_name;
      await abap.statements.cast(p_descr_ref, (await abap.Classes['CL_ABAP_INTFDESCR'].describe_by_name({p_name: p_name})));
      return p_descr_ref;
    }
    async get_attribute_type(INPUT) {
      let p_descr_ref = new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"});
      let p_name = INPUT?.p_name;
      let lv_name = new abap.types.Character(61, {"qualifiedName":"abap_attrname"});
      let ls_type = new abap.types.Structure({
      "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
      "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "cl_abap_objectdescr=>ty_attribute_types", undefined, {}, {});
      lv_name.set(abap.builtin.to_upper({val: p_name}));
      abap.statements.readTable(this.mt_attribute_types,{into: ls_type,
        withKey: (i) => {return abap.compare.eq(i.name, lv_name);},
        withKeyValue: [{key: (i) => {return i.name}, value: lv_name}],
        usesTableLine: false,
        withKeySimple: {"name": lv_name}});
      if (abap.compare.ne(abap.builtin.sy.get().subrc, abap.IntegerFactory.get(0))) {
        throw new abap.ClassicError({classic: "attribute_not_found"});
      }
      p_descr_ref.set(ls_type.get().type);
      abap.statements.assert(abap.compare.initial(p_descr_ref) === false);
      return p_descr_ref;
    }
  }
  abap.Classes['CL_ABAP_OBJECTDESCR'] = cl_abap_objectdescr;
  cl_abap_objectdescr.mt_cache = abap.types.TableFactory.construct(new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_CACHE-NAME"}),
  "descr": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"})}, "cl_abap_objectdescr=>ty_cache", undefined, {}, {}), {"withHeader":false,"keyType":"USER","primaryKey":{"name":"primary_key","type":"SORTED","isUnique":true,"keyFields":["NAME"]},"secondary":[]}, "");
  cl_abap_objectdescr.changing = new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});
  cl_abap_objectdescr.changing.set('C');
  cl_abap_objectdescr.exporting = new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});
  cl_abap_objectdescr.exporting.set('E');
  cl_abap_objectdescr.importing = new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});
  cl_abap_objectdescr.importing.set('I');
  cl_abap_objectdescr.receiving = new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});
  cl_abap_objectdescr.receiving.set('R');
  cl_abap_objectdescr.returning = new abap.types.Character(1, {"qualifiedName":"abap_parmkind"});
  cl_abap_objectdescr.returning.set('R');
  cl_abap_objectdescr.private = new abap.types.Character(1, {"qualifiedName":"abap_visibility"});
  cl_abap_objectdescr.private.set('I');
  cl_abap_objectdescr.protected = new abap.types.Character(1, {"qualifiedName":"abap_visibility"});
  cl_abap_objectdescr.protected.set('O');
  cl_abap_objectdescr.public = new abap.types.Character(1, {"qualifiedName":"abap_visibility"});
  cl_abap_objectdescr.public.set('U');
  cl_abap_objectdescr.ty_cache = new abap.types.Structure({
  "name": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_CACHE-NAME"}),
  "descr": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_OBJECTDESCR", RTTIName: "\\CLASS=CL_ABAP_OBJECTDESCR"})}, "cl_abap_objectdescr=>ty_cache", undefined, {}, {});
  cl_abap_objectdescr.ty_attribute_types = new abap.types.Structure({
  "name": new abap.types.Character(61, {"qualifiedName":"abap_attrname"}),
  "type": new abap.types.ABAPObject({qualifiedName: "CL_ABAP_DATADESCR", RTTIName: "\\CLASS=CL_ABAP_DATADESCR"})}, "cl_abap_objectdescr=>ty_attribute_types", undefined, {}, {});
  cl_abap_objectdescr.ty_parameter_types = new abap.types.Structure({
  "method": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-METHOD"}),
  "parameter": new abap.types.String({qualifiedName: "CL_ABAP_OBJECTDESCR=>TY_PARAMETER_TYPES-PARAMETER"}),
  "type": new abap.types.DataReference(new abap.types.Character(4)),
  "type_kind": new abap.types.Character(1, {"qualifiedName":"abap_typekind"})}, "cl_abap_objectdescr=>ty_parameter_types", undefined, {}, {});
export {cl_abap_objectdescr};