Libraryless. Click here for Pure Java version (4501L/26K).
1 | please include function allClasses. |
2 | |
3 | sS getClassDeclarationName(L<S> tok) { |
4 | if (tok != null) |
5 | for (int i = 1; i+2 < tok.size(); i += 2) |
6 | if (allClasses_keywords.contains(tok.get(i)) && isIdentifier(tok.get(i+2))) { |
7 | while (contains(getClassDeclarationName_skippables(), get(tok, i+2))) |
8 | i += 2; |
9 | ret tok.get(i+2); |
10 | } |
11 | null; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001162 |
Snippet name: | getClassDeclarationName (also works with interfaces and enums) |
Eternal ID of this version: | #1001162/8 |
Text MD5: | 2dce6a6bceb1af0d006c052793165751 |
Transpilation MD5: | 256dd3d5fda63ac9a18d8f5fd9ece37d |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-16 02:44:23 |
Source code size: | 377 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 816 / 2530 |
Version history: | 7 change(s) |
Referenced in: | [show references] |