Libraryless. Click here for Pure Java version (3820L/22K).
1 | static Class getOuterClass(Class c, O classFinder default null) ctex { |
2 | S s = c.getName(); |
3 | int i = s.lastIndexOf('$'); |
4 | S name = substring(s, 0, i); |
5 | ret classForName(name, classFinder); |
6 | } |
7 | |
8 | static Class getOuterClass(O o, O classFinder default null) { |
9 | ret getOuterClass(_getClass(o), classFinder); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004786 |
Snippet name: | getOuterClass |
Eternal ID of this version: | #1004786/4 |
Text MD5: | 680830dc10ffaba5cba807cc003ee28c |
Transpilation MD5: | aa130cac90374f0d37e2809e81adca86 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-06 14:47:05 |
Source code size: | 315 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 613 / 665 |
Version history: | 3 change(s) |
Referenced in: | [show references] |