// name currently not used, we only call a method called "_wrap" in // the main class with the to-wrapped object as first argument and // a list of other parameters as second argument. static <A> A wrapStuff(S name, A object, O... args) { //ret or(object, (A) callOpt(mc(), "wrap" + name, // toObjectArray(concatLists(litlist((O) object), toList(args))))); ret or((A) callOpt(mc(), "_wrap", object, asList(args)), object); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002691 |
Snippet name: | wrapStuff method - allow interception of new objects |
Eternal ID of this version: | #1002691/2 |
Text MD5: | 9fd17dcd6918cfa350e0709b2074ca35 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-17 18:19:19 |
Source code size: | 438 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 728 / 747 |
Version history: | 1 change(s) |
Referenced in: | [show references] |