Uses 1314K of libraries. Click here for Pure Java version (4074L/30K/95K).
1 | !752 |
2 | |
3 | p { |
4 | loadPage_debug = true; // see if we are using gzip |
5 | S java = getServerTranspilation("#1004930"); |
6 | L<S> tok = javaTok(java); |
7 | |
8 | // TODO: change static fields & methods in inner classes |
9 | // (kinda hard). We need to find out what every token in |
10 | // such a method references, also pass in a reference to main. |
11 | // Alternatively: Move all those methods to main, and fix |
12 | // references inside of them. That might be doable. |
13 | // We need a Java destructurer (field & method finder). |
14 | |
15 | // Idea: Find all static fields & methods in inner classes. |
16 | // Then rename references to them, both inside the class and in main. |
17 | |
18 | jreplace(tok, "static", ""); |
19 | jreplace1(tok, "main.", "main.this."); |
20 | jreplace1(tok, "main.this.class", "main.this"); |
21 | |
22 | S src = join(tok); |
23 | |
24 | editJavaX(src); |
25 | |
26 | javaCompile(src); |
27 | print("Compiles!"); |
28 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004945 |
Snippet name: | Dynamizer Test [turn program into an object] |
Eternal ID of this version: | #1004945/1 |
Text MD5: | 8653f4dc7d9e29978c5d48fa30c2b9ae |
Transpilation MD5: | 7eb1518dd2a7912f6faf38167140442f |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-09-18 16:08:14 |
Source code size: | 876 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 685 / 760 |
Referenced in: | [show references] |