Transpiled version (50L) is out of date.
1 | static Class typeToClass(Type type) { |
2 | if (type == null) null; |
3 | if (type cast Class) ret type; |
4 | if (type cast ParameterizedType) ret optCast Class(type.getRawType()); |
5 | if (type cast GenericArrayType) |
6 | ret typeToClass(type.getGenericComponentType()).arrayType(); |
7 | if (type cast IResolvableClass) |
8 | ret type.resolveToClass(); |
9 | null; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1029588 |
Snippet name: | typeToClass |
Eternal ID of this version: | #1029588/3 |
Text MD5: | ae92d6e25f57d3d151569a447894b331 |
Author: | stefan |
Category: | javax / reflection |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-13 18:46:44 |
Source code size: | 352 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 246 / 358 |
Version history: | 2 change(s) |
Referenced in: | [show references] |