Download Jar. Libraryless. Click here for Pure Java version (1608L/11K).
!7 html { if (webAuthed()) { if (eq(uri, "/clean")) { gc(); S answer = n(killThreadsOfExpiredMainClasses(), "thread") + " killed"; sleepSeconds(1); gc(); ret answer; } } L<Class> classes = allMainClasses(); new L<S> l; for (Class c : classes) { S s = className(c); RuntimeException e = null; //s += ", " + str(callOpt(c, 'getProgramID)); s += ", " + getOpt(c, 'programID); pcall { e = (RuntimeException) callOpt(c, 'asRuntimeException, new Exception); } if (e != null) s += ", " + firstFileNameFromStackTrace(e); Bool lic = cast getOpt(c, 'licensed_yes); if (eq(lic, true)) {} // licensed else s += ", license: " + lic; L<Thread> threads = registeredThreads(c); if (nempty(threads)) s += ", threads: " + threadNames(threads); l.add(s); } ret p("Have " + n(classes, "class") + ".") + ul_htmlEncode(l); }
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: | #1010505 |
| Snippet name: | allMainClasses Web Bot |
| Eternal ID of this version: | #1010505/16 |
| Text MD5: | 4a215b8a2009202e2d68775cd8fe5888 |
| Transpilation MD5: | 363d5070425419a634ed6610508fbbe9 |
| Author: | stefan |
| Category: | javax / html |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-19 17:18:43 |
| Source code size: | 956 bytes / 34 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 818 / 5362 |
| Version history: | 15 change(s) |
| Referenced in: | [show references] |