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 | 1x 1x 1x 1x | const {cx_root} = await import("./cx_root.clas.mjs");
// cl_abap_weak_reference.clas.abap
class cl_abap_weak_reference {
static STATIC_SUPER = undefined;
static INTERNAL_TYPE = 'CLAS';
static INTERNAL_NAME = 'CL_ABAP_WEAK_REFERENCE';
static IMPLEMENTED_INTERFACES = [];
static ATTRIBUTES = {"MV_REF": {"type": () => {return new abap.types.Hex();}, "visibility": "I", "is_constant": " ", "is_class": " "}};
static METHODS = {"CONSTRUCTOR": {"visibility": "U", "parameters": {"OREF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined});}, "is_optional": " ", "parm_kind": "I", "type_name": "GenericObjectReferenceType"}}},
"GET": {"visibility": "U", "parameters": {"OREF": {"type": () => {return new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined});}, "is_optional": " ", "parm_kind": "R", "type_name": "GenericObjectReferenceType"}}}};
#mv_ref;
constructor() {
this.me = new abap.types.ABAPObject();
this.me.set(this);
this.INTERNAL_ID = abap.internalIdCounter++;
this.FRIENDS_ACCESS_INSTANCE = {
"get": this.get.bind(this),
};
this.#mv_ref = new abap.types.Hex();
this.FRIENDS_ACCESS_INSTANCE["mv_ref"] = this.#mv_ref;
}
async constructor_(INPUT) {
let oref = INPUT?.oref;
if (oref === undefined) { oref = new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined}).set(INPUT.oref); }
abap.statements.assert(abap.compare.initial(oref) === false);
this.mv_ref = new WeakRef(oref);
return this;
}
async get() {
let oref = new abap.types.ABAPObject({qualifiedName: undefined, RTTIName: undefined});
oref.set(this.mv_ref.deref());
return oref;
}
}
abap.Classes['CL_ABAP_WEAK_REFERENCE'] = cl_abap_weak_reference;
export {cl_abap_weak_reference}; |