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

21
LINES

< > BotCompany Repo | #1010561 // hotwire_finish

JavaX fragment (include)

1  
static Class hotwire_finish(ClassLoader classLoader, S progID, S javaSource) {
2  
  ret hotwire_finish(classLoader, progID, javaSource, "main");
3  
}
4  
5  
static Class hotwire_finish(ClassLoader classLoader, S progID, S javaSource, S mainClass) ctex {
6  
  // load & return main class
7  
  Class<?> theClass = classLoader.loadClass(mainClass);
8  
  
9  
  Class j = getJavaX();
10  
  
11  
  setOpt(theClass, "myJavaSource_code", javaSource);
12  
  
13  
  synchronized(j) { // hopefully this goes well...
14  
    call(j, "setVars", theClass, progID);
15  
    callOpt(j, "addInstance", progID, theClass);
16  
  }
17  
  
18  
  hotwire_copyOver(theClass);
19  
  vmBus_send hotwireFinished(theClass, mc());
20  
  ret theClass;
21  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 19 computer(s): afbdgwpgxusd, aoiabmzegqzx, bhatertpkbcr, bvmoasoxxqgd, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, soykzrexxpfe, tslmcundralx, tvejysmllsmz, vouqrxazstgt, vpdwwinrgdga, xeobevbjagfg

No comments. add comment

Snippet ID: #1010561
Snippet name: hotwire_finish
Eternal ID of this version: #1010561/6
Text MD5: 0c360eb66cfb3563aa0d08ede46fdd7d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-27 19:20:40
Source code size: 676 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 576 / 876
Version history: 5 change(s)
Referenced in: [show references]