Libraryless. Click here for Pure Java version (6842L/47K).
static L<FunctionNameAndPattern> matchingPatternsInJavaXSource_withFunctions(S src) { L<S> patterns = mL("JavaX patterns matching patterns"); final LS tok = javaTok(loadSnippetOrKeep(src)); new LinkedHashSet<FunctionNameAndPattern> out; for (S pat : patterns) for (S found : jextractAll(pat, tok)) out.add(FunctionNameAndPattern(firstToken(found), firstQuotedToken(found))); ret asList(out); }
Began life as a copy of #1022513
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025362 |
| Snippet name: | matchingPatternsInJavaXSource_withFunctions - also takes a snippetID |
| Eternal ID of this version: | #1025362/3 |
| Text MD5: | 3b563fbefe89f039aeb97e3b38c053ff |
| Transpilation MD5: | 7336bb5f7bd4628028e61503e5e61457 |
| Author: | stefan |
| Category: | javax / code analysis |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-09-26 13:24:24 |
| Source code size: | 421 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 454 / 582 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |