Libraryless. Click here for Pure Java version (6842L/47K).
1 | static L<FunctionNameAndPattern> matchingPatternsInJavaXSource_withFunctions(S src) { |
2 | L<S> patterns = mL("JavaX patterns matching patterns"); |
3 | final LS tok = javaTok(loadSnippetOrKeep(src)); |
4 | new LinkedHashSet<FunctionNameAndPattern> out; |
5 | for (S pat : patterns) |
6 | for (S found : jextractAll(pat, tok)) |
7 | out.add(FunctionNameAndPattern(firstToken(found), firstQuotedToken(found))); |
8 | ret asList(out); |
9 | } |
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: | 264 / 350 |
Version history: | 2 change(s) |
Referenced in: | [show references] |