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

15
LINES

< > BotCompany Repo | #1023429 // Module Code Share Base [dev.]

JavaX source code (Dynamic Module) - run with: Stefan's OS

1  
!7
2  
3  
cmodule CodeShareBase > DynPrintLogAndEnabled {
4  
  transient Map<S, Class> codeBase; // snippet ID -> main class
5  
  
6  
  // API
7  
  
8  
  Class getCodeForSnippetID(S snippetID) {
9  
    ret codeBase.get(fsI(snippetID));
10  
  }
11  
  
12  
  Class saveCode(S snippetID, Class code) {
13  
    codeBase.put(fsI(snippetID), code);
14  
  }
15  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1023429
Snippet name: Module Code Share Base [dev.]
Eternal ID of this version: #1023429/1
Text MD5: 1669f1e15a997a60ab03ed0838c4f42e
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: 2019-06-21 14:02:52
Source code size: 322 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 293 / 305
Referenced in: [show references]