static <A> A jextractSerializedObject(S s, Class<A> c) { L<S> tok = javaTok(s); int i = indexOf(tok, shortClassName(c)); if (i < 0) null; int j = i+1; if (eq(get(tok, i+2), "(")) j = findEndOfBracketPart(tok, i+2); s = joinSubList(tok, i, j); ifdef jextractSerializedObject_debug print("ser >> " + s); endifdef ret (A) unstruct(s); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015341 |
Snippet name: | jextractSerializedObject |
Eternal ID of this version: | #1015341/4 |
Text MD5: | 72b6d4004aa6737325a28f91fb2f98bb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-13 01:15:20 |
Source code size: | 369 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 339 / 387 |
Version history: | 3 change(s) |
Referenced in: | [show references] |