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

12
LINES

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

JavaX fragment (include)

static <A> A call(O o) {
  return (A) callF(o);
}

// varargs assignment fixer for a single string array argument
static <A> A call(O o, S method, S[] arg) {
  return call(o, method, new O[] {arg});
}

static <A> A call(O o, S method, O... args) {
  ret (A) call_cached(o, method, args);
}

Author comment

Began life as a copy of #2000497

Now safer

download  show line numbers  debug dex   

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

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/19
Text MD5: 928dd8f9cdf1b9238f77c22fa9ecfd4f
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-20 21:35:38
Source code size: 300 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 589 / 10001
Version history: 18 change(s)
Referenced in: [show]