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

10
LINES

< > BotCompany Repo | #1031286 // filesFromClassLoader

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

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

// works for JavaXClassLoader

static L<File> filesFromClassLoader(Class c) {
  ret filesFromClassLoader(getClassLoader(c));
}

static L<File> filesFromClassLoader(ClassLoader cl) {
  Cl<File> l = filesFromClassLoader_new(cl);
  ret l == null ?: asList(l);
}

Author comment

Began life as a copy of #1012231

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031286
Snippet name: filesFromClassLoader
Eternal ID of this version: #1031286/6
Text MD5: 88f0ee4f52d9ebbd65be55ac5e462451
Transpilation MD5: 7046b54b163bb49c2271886b48c2a11a
Author: stefan
Category: javax / byte code
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-09 08:48:13
Source code size: 267 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 199 / 287
Version history: 5 change(s)
Referenced in: [show references]