Uses 1320K of libraries. Click here for Pure Java version (6519L/31K).
1 | !7 |
2 | |
3 | import org.reflections.*; |
4 | import org.reflections.scanners.*; |
5 | |
6 | lib 1400510 // Reflections 0.10 |
7 | lib 1011966 // slf for fuck the wurst |
8 | |
9 | cm ReflectionsTest > DynPrintLogAndEnabled { |
10 | transient Reflections reflections; |
11 | transient Set<Class<?>> subTypesOfObject; |
12 | transient Cl<S> directSubtypes; |
13 | |
14 | start-thread { |
15 | fixContextClassLoader(); |
16 | |
17 | reflections = new Reflections("java.lang"); |
18 | print("Have lib"); |
19 | |
20 | /*subTypesOfObject = |
21 | reflections.get(SubTypes.of(Object.class).asClass()); |
22 | print(n2(subTypesOfObject));*/ |
23 | |
24 | directSubtypes = |
25 | reflections.getStore().get(SubTypesScanner.class).get(Object.class.getName()); |
26 | print(n2(directSubtypes)); |
27 | } |
28 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): bhatertpkbcr, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032871 |
Snippet name: | Reflections Test [Java class detection library] |
Eternal ID of this version: | #1032871/5 |
Text MD5: | 6b520fbac7348360e64642b27cbc7999 |
Transpilation MD5: | 8002b1293223ae8ef5118b754caf8e56 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-07 00:58:34 |
Source code size: | 718 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 651 / 758 |
Version history: | 4 change(s) |
Referenced in: | [show references] |