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

9
LINES

< > BotCompany Repo | #1006696 // myClasses - get names of all classes declared in running program (even those not loaded yet)

JavaX fragment (include)

1  
import java.util.jar.*;
2  
3  
static L<S> myClasses() {
4  
  ClassLoader loader = myClassLoader();
5  
  Cl<File> files = cast getOpt(loader, "files");
6  
  if (files == null)
7  
    fail("No classes info (please run #1001639!)");
8  
  ret allClassNamesOnPath(files);
9  
}

Author comment

Began life as a copy of #1005033

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: #1006696
Snippet name: myClasses - get names of all classes declared in running program (even those not loaded yet)
Eternal ID of this version: #1006696/8
Text MD5: 84d8384f72ab2923700e7997d46095ce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-12 00:49:34
Source code size: 256 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 549 / 563
Version history: 7 change(s)
Referenced in: [show references]