Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1000630 // call function(s) for reflective calls to objects/classes

JavaX fragment (include)

1  
sO call(O o) {
2  
  return callF(o);
3  
}
4  
5  
// varargs assignment fixer for a single string array argument
6  
sO call(O o, S method, S[] arg) {
7  
  ret call(o, method, new O[] {arg});
8  
}
9  
10  
sO call(O o, S method, O... args) {
11  
  //ret call_cached(o, method, args);
12  
  ret call_withVarargs(o, method, args);
13  
}

Author comment

Began life as a copy of #2000497

Now safer

download  show line numbers  debug dex  old transpilations   

Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

Comments [hide]

ID Author/Program Comment Date
797 #1000604 (pitcher) 2015-08-20 15:28:24

add comment

Snippet ID: #1000630
Snippet name: call function(s) for reflective calls to objects/classes
Eternal ID of this version: #1000630/21
Text MD5: a70d744c4e0e7c72e8ce9714461f9a17
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-24 12:28:41
Source code size: 303 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 1359 / 11199
Version history: 20 change(s)
Referenced in: [show references]