Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

17
LINES

< > BotCompany Repo | #1021951 // javaTokForJFind_array - code tokens as array

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2666L/17K).

1  
scope javaTokForJFind_array.
2  
3  
ifdef javaTokForJFind_array_simpleCache
4  
  static HashMap<S, S[]> #cache = new HashMap;
5  
endifdef
6  
ifndef javaTokForJFind_array_simpleCache
7  
  static Map<S, S[]> #cache = synchronizedMRUCache(1000);
8  
endifndef
9  
10  
static S[] javaTokForJFind_array(S s) {
11  
  S[] tok = cache.get(s);
12  
  if (tok == null)
13  
    cache.put(s, tok = codeTokensAsStringArray(jfind_preprocess(javaTok(s)));
14  
  ret tok;
15  
}
16  
17  
end scope

Author comment

Began life as a copy of #1021948

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1021951
Snippet name: javaTokForJFind_array - code tokens as array
Eternal ID of this version: #1021951/2
Text MD5: abd82189dd3d86838d28cbf1554ec651
Transpilation MD5: d90ba1bdd64967e30e894f476c09ff8a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-08 01:12:54
Source code size: 438 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 329 / 451
Version history: 1 change(s)
Referenced in: [show references]