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

27
LINES

< > BotCompany Repo | #1018758 // Loaded Submodules [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (15367L/107K).

!7

srecord SM(S moduleID, S moduleName, WeakReference subModule) {}

module SubModules extends DynObjectTable<SM> {
  start {
    itemToMap = func(SM sm) -> Map {
      litorderedmap(
        "Module ID" := sm.moduleID,
        "Module" := sm.moduleName,
        "Submodule ID" := or2(programID(sm.subModule!), "?"))
    };
    doEveryAndNow(10000, r {
      new L<SM> out;
      for (O mod : dm_listModules()) {
        L subModules = dependentClassesOfProgram(mainClass(mod));
        if (nempty(subModules)) {
          S moduleID = dm_moduleID(mod);
          S name = dm_moduleName(mod);
          for (O sub : subModules)
            out.add(SM(moduleID, name, weakRef(sub)));
        }
      }
      setData(out);
    });
  }
}

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: 366 / 451
Version history: 4 change(s)
Referenced in: