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

12
LINES

< > BotCompany Repo | #1024024 // dm_stickyLibsByModule

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2527L/16K).

1  
// module ID => sticky library IDs
2  
static MultiMap<S> dm_stickyLibsByModule() {
3  
  new MultiMap<S> mm;
4  
  for (S mod : dm_listModuleIDs()) {
5  
    O main = dm_modMainClass(mod);
6  
    for (S field : fieldNames(main))
7  
      if (eq(field, '_stickyLibs) || startsWith(field, "_stickyLibs_")) pcall {
8  
        mm.putAll(mod, (Collection<S>) get(main, field));
9  
      }
10  
  }
11  
  ret uniquifyMultiMapValues(mm);
12  
}

Author comment

Began life as a copy of #1023432

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, yanjaxplzisb

No comments. add comment

Snippet ID: #1024024
Snippet name: dm_stickyLibsByModule
Eternal ID of this version: #1024024/5
Text MD5: 4646fc6a7c261fa6065406ffbe2a99b0
Transpilation MD5: 01be2be58ce5d63c3a85c6eefbaca372
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-16 20:49:12
Source code size: 407 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 241 / 357
Version history: 4 change(s)
Referenced in: [show references]