Libraryless. Click here for Pure Java version (5090L/34K).
1 | sS defaultModuleClassForSnippetID(S snippetID) {
|
2 | LS tok = javaTok(getServerTranspiled2(snippetID)); |
3 | new Matches m; |
4 | for (int i : jfindAll(tok, "boolean <id> = true;")) |
5 | if (startsWith(tok.get(i+2), "_moduleClass_", m) && isIdentifier(m.rest())) |
6 | ret m.rest(); |
7 | null; |
8 | } |
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: | #1027707 |
| Snippet name: | defaultModuleClassForSnippetID |
| Eternal ID of this version: | #1027707/2 |
| Text MD5: | f8ad36526d92bb899907854b4e12c1bf |
| Transpilation MD5: | cbe168021753ee06ccab92bc8d0558df |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-04-04 16:01:15 |
| Source code size: | 289 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 392 / 511 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |