Libraryless. Click here for Pure Java version (15367L/107K).
1 | !7 |
2 | |
3 | srecord SM(S moduleID, S moduleName, WeakReference subModule) {} |
4 | |
5 | module SubModules extends DynObjectTable<SM> { |
6 | start { |
7 | itemToMap = func(SM sm) -> Map { |
8 | litorderedmap( |
9 | "Module ID" := sm.moduleID, |
10 | "Module" := sm.moduleName, |
11 | "Submodule ID" := or2(programID(sm.subModule!), "?")) |
12 | }; |
13 | doEveryAndNow(10000, r { |
14 | new L<SM> out; |
15 | for (O mod : dm_listModules()) { |
16 | L subModules = dependentClassesOfProgram(mainClass(mod)); |
17 | if (nempty(subModules)) { |
18 | S moduleID = dm_moduleID(mod); |
19 | S name = dm_moduleName(mod); |
20 | for (O sub : subModules) |
21 | out.add(SM(moduleID, name, weakRef(sub))); |
22 | } |
23 | } |
24 | setData(out); |
25 | }); |
26 | } |
27 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018758 |
Snippet name: | Loaded Submodules [Dyn Module] |
Eternal ID of this version: | #1018758/5 |
Text MD5: | 48c293b52c43016e9dec30de0e33758e |
Transpilation MD5: | 257bef28910064b91258c57b5c6cae93 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-13 14:34:35 |
Source code size: | 761 bytes / 27 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 367 / 452 |
Version history: | 4 change(s) |
Referenced in: | [show references] |