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)

import java.util.jar.*;

static L<S> myClasses() {
  ClassLoader loader = myClassLoader();
  Cl<File> files = cast getOpt(loader, "files");
  if (files == null)
    fail("No classes info (please run #1001639!)");
  ret allClassNamesOnPath(files);
}

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: 490 / 502
Version history: 7 change(s)
Referenced in: [show references]