Libraryless. Click here for Pure Java version (8173L/47K).
1 | sS addClassNameToInclude(S snippetID, S className) {
|
2 | LS tok = javaTokSnippet(snippetID); |
3 | |
4 | if (jfind(tok, "please include class " + className) >= 0) |
5 | ret className + " already included"; |
6 | |
7 | tokPrepend(tok, l(tok)-1, "\nplease include class " + className + "."); |
8 | |
9 | ret editSnippet(snippetID, join(tok)); |
10 | } |
Began life as a copy of #1034736
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034826 |
| Snippet name: | addClassNameToInclude |
| Eternal ID of this version: | #1034826/3 |
| Text MD5: | 880de0f149d5aae10342af7eaa853435 |
| Transpilation MD5: | 368b2c25f43cbd5fb00c15799700a909 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-11 01:29:11 |
| Source code size: | 324 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 405 / 517 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |