Libraryless. Click here for Pure Java version (8015L/45K).
1 | sS typeToVMSignature(Type t) {
|
2 | Class c = getRawTypeClass(t); |
3 | if (t cast ParameterizedType) {
|
4 | L<Class> args = map getRawTypeClass(t.getActualTypeArguments()); |
5 | if (nempty(args)) |
6 | ret classNameToByteCodeFormat(c) |
7 | + "<" + joinMap(args, arg -> classNameToByteCodeFormat(arg) + ";") + ">;"; |
8 | } |
9 | |
10 | ret classNameToByteCodeFormat(c) + ";"; |
11 | } |
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: | 739 / 933 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |