1 | ifclass F0 |
2 | static <A> A callFInRealMC(O realm, F0<A> f) { |
3 | ret f == null ? null : f.get(); |
4 | } |
5 | endif |
6 | |
7 | ifclass F1 |
8 | static <A, B> B callFInRealMC(O realm, F1<A, B> f, A a) { |
9 | ret f == null ? null : f.get(a); |
10 | } |
11 | endif |
12 | |
13 | ifclass F2 |
14 | static <A, B, C> C callFInRealMC(O realm, F2<A, B, C> f, A a, B b) { |
15 | ret f == null ? null : f.get(a, b); |
16 | } |
17 | endif |
18 | |
19 | ifclass VF1 |
20 | static <A> void callFInRealMC(O realm, VF1<A> f, A a) { |
21 | if (f != null) f.get(a); |
22 | } |
23 | endif |
24 | |
25 | static O callFInRealMC(O realm, O f, O... args) { |
26 | if (f instanceof S) |
27 | ret call(getMainClass(realm), (S) f, args); |
28 | ret callF(f, args); |
29 | } |
Began life as a copy of #1003483
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020757 |
Snippet name: | callFInRealMC - callF + adjust for real main class |
Eternal ID of this version: | #1020757/1 |
Text MD5: | 16d0eba676cbab3c33e5b723d3800996 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-01 20:11:19 |
Source code size: | 640 bytes / 29 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 281 / 295 |
Referenced in: | [show references] |