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


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

JavaX fragment (include)

sO call(O o) {
  return callF(o);

// varargs assignment fixer for a single string array argument
sO call(O o, S method, S[] arg) {
  ret call(o, method, new O[] {arg});

sO call(O o, S method, O... args) {
  ret call_cached(o, method, args);

Author comment

Began life as a copy of #2000497

Now safer

download  show line numbers  debug dex   

Travelled to 14 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lnbujpyubztb, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, tslmcundralx, tvejysmllsmz, whxojlpjdney

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/20
Text MD5: 13a5d93d65dd988b6166c262bc3fe7cd
Author: stefan
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-08 18:09:57
Source code size: 259 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 667 / 10202
Version history: 19 change(s)
Referenced in: [show references]