1 | // scans a Java construct (class, method) and checks its modifiers |
2 | static boolean hasModifier(L<S> tok, S modifier) {
|
3 | for (int i = 1; i < tok.size() && getJavaModifiers().contains(tok.get(i)); i += 2) |
4 | if (tok.get(i).equals(modifier)) |
5 | return true; |
6 | return false; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002201 |
| Snippet name: | hasModifier |
| Eternal ID of this version: | #1002201/1 |
| Text MD5: | 25b58f78e6e6d92a7981475b20fcde17 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-12-31 22:58:06 |
| Source code size: | 284 bytes / 7 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1215 / 1685 |
| Referenced in: | [show references] |