Libraryless. Click here for Pure Java version (2373L/15K).
1 | sS tok_dropJavaAndJavaXModifiers(S s) { |
2 | ret join(tok_dropJavaAndJavaXModifiers(javaTok(s))); |
3 | } |
4 | |
5 | static LS tok_dropJavaAndJavaXModifiers(LS tok) { |
6 | Set<S> mod = getJavaAndJavaXModifiers(); |
7 | for (int i = 1; i < l(tok); i += 2) |
8 | if (mod.contains(tok.get(i))) |
9 | tok.set(i, ""); |
10 | ret tok; |
11 | } |
Began life as a copy of #1026717
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: | #1026719 |
Snippet name: | tok_dropJavaAndJavaXModifiers |
Eternal ID of this version: | #1026719/1 |
Text MD5: | 92abb21357b0b9e3ef79f8c779edb12f |
Transpilation MD5: | ddb292ab0538f4109fc487370f3eb05a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-19 19:55:08 |
Source code size: | 307 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 209 / 299 |
Referenced in: | [show references] |