Libraryless. Click here for Pure Java version (4621L/26K).
1 | static Class findClassInStandardImports(S name) {
|
2 | for (S pkg : itemPlusList("java.lang",
|
3 | endingWith_dropSuffix(standardImports(), ".*"))) |
4 | try object Class c = classForNameOpt_noCache(pkg + "." + name); |
5 | null; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033986 |
| Snippet name: | findClassInStandardImports |
| Eternal ID of this version: | #1033986/5 |
| Text MD5: | 4c0af8cebaf25657304efaefc17150cd |
| Transpilation MD5: | 28d159b63edbb9589060d9a5be4b20c4 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-15 06:57:14 |
| Source code size: | 226 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 580 / 684 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |