Libraryless. Click here for Pure Java version (197L/2K/5K).
1 | !7 |
2 | |
3 | import x30_pkg.x30_util; |
4 | import static x30_pkg.x30_util.eq; |
5 | import static x30_pkg.x30_util.isFalse; |
6 | import static x30_pkg.x30_util.rethrow; |
7 | import static x30_pkg.x30_util.fail; |
8 | import static x30_pkg.x30_util.multiMapPut; |
9 | import static x30_pkg.x30_util.getExceptionCause; |
10 | import static x30_pkg.x30_util.print_append; |
11 | import static x30_pkg.x30_util.newWeakHashMap; |
12 | import static x30_pkg.x30_util.fixNewLines; |
13 | import static x30_pkg.x30_util.join; |
14 | import static x30_pkg.x30_util.joinWithSpace; |
15 | import static x30_pkg.x30_util.isHeadless; |
16 | import static x30_pkg.x30_util.isAndroid; |
17 | import static x30_pkg.x30_util.call_checkArgs; |
18 | import static x30_pkg.x30_util._handleError; |
19 | import static x30_pkg.x30_util.endsWithLetterOrDigit; |
20 | import static x30_pkg.x30_util.isAWTThread; |
21 | import static x30_pkg.x30_util.str; |
22 | import static x30_pkg.x30_util.currentThread; |
23 | |
24 | static O callF(O f, O... args) ctex { |
25 | if (f instanceof S) |
26 | ret callMC((S) f, args); |
27 | ifclass DynamicCallable |
28 | if (f instanceof DynamicCallable) |
29 | ret f/DynamicCallable._dyn(args); |
30 | endif |
31 | ret x30_util.callF(f, args); |
32 | } |
33 | |
34 | static O callMC(S method, O... args) { |
35 | ret call(mc(), method, args); |
36 | } |
37 | |
38 | static O call(O o) { |
39 | ret callF(o); |
40 | } |
41 | |
42 | static O call(O o, S method, O... args) { |
43 | ret x30_util.call(o, method, args); |
44 | } |
45 | |
46 | p { |
47 | print("Hello world!"); |
48 | } |
Began life as a copy of #1016415
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016583 |
Snippet name: | JavaX Hello World using x30_util [OK] |
Eternal ID of this version: | #1016583/21 |
Text MD5: | 6cc244cb3f3c31ec992d23b3413b779e |
Transpilation MD5: | a789bb3012bcb18de6dfe4ebae0229a4 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-24 14:47:35 |
Source code size: | 1361 bytes / 48 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 424 / 606 |
Version history: | 20 change(s) |
Referenced in: | [show references] |