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

21
LINES

< > BotCompany Repo | #1016101 // Find all module IDs & static module classes used in OS & upload to mech list [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (8939L/64K).

!7

p-experiment {
  new TreeSet<S> seen;
  for (File f : conceptBackupFiles(#1015871)) {
    print(f);
    Collection<DynamicObject> concepts = values((Map) safeUnstructureGZFile(f));
    print(n2(concepts, "concept"));
    seen.addAll(map shortDynClassName(concepts));
    for (DynamicObject o : concepts)
      if (eq(shortDynClassName(o), 'DynamicModule)) {
        S moduleID = cast getOpt(o, 'moduleID);
        if (moduleID == null) continue;
        S className = cast getOpt(o, '_className);
        if (className != null) moduleID += "/" + dropPrefix("main$", className);
        addIfNempty(seen, moduleID);
      }
  }
  pnl(seen);
  addToMechList("Used Modules", seen);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016101
Snippet name: Find all module IDs & static module classes used in OS & upload to mech list [OK]
Eternal ID of this version: #1016101/10
Text MD5: cb25621c209253e9c315cacc21279a93
Transpilation MD5: 2a61320e856d39b4cdda4e839cc88857
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-06 01:57:04
Source code size: 704 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 703
Version history: 9 change(s)
Referenced in: [show references]