Libraryless. Click here for Pure Java version (8015L/45K).
sS typeToVMSignature(Type t) { Class c = getRawTypeClass(t); if (t cast ParameterizedType) { L<Class> args = map getRawTypeClass(t.getActualTypeArguments()); if (nempty(args)) ret classNameToByteCodeFormat(c) + "<" + joinMap(args, arg -> classNameToByteCodeFormat(arg) + ";") + ">;"; } ret classNameToByteCodeFormat(c) + ";"; }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035321 |
| Snippet name: | typeToVMSignature |
| Eternal ID of this version: | #1035321/4 |
| Text MD5: | dec9473b92a0f70176c8088687a94263 |
| Transpilation MD5: | 18ea89e88e74fac9ec7bfcae8bc14ef1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-01 01:53:35 |
| Source code size: | 370 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 737 / 929 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |