static Patternized genericPatternize(O pred, S s) { L<S> tok = codeTokens(javaTok(s)); new L<S> pat; new L<S> args; for (S t : tok) if (callPred(pred, t)) { pat.add("*"); args.add(t); } else if (eq(t, "*")) pat.add("\\*"); else pat.add(t); ret new Patternized(join(" ", pat), args); }
Began life as a copy of #1005435
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005437 |
Snippet name: | genericPatternize |
Eternal ID of this version: | #1005437/1 |
Text MD5: | 7eb3f1e1f25172c0410177f59a8425bc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-16 20:38:04 |
Source code size: | 343 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 489 / 507 |
Referenced in: | [show references] |