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

5
LINES

< > BotCompany Repo | #1008753 // tok_classHasModifier

JavaX fragment (include)

1  
static bool tok_classHasModifier(L<S> classDecl, S modifier) {
2  
  if (classDecl == null) false;
3  
  int i = classDecl.indexOf("class");
4  
  ret subList(classDecl, 0, i).contains(modifier);
5  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008753
Snippet name: tok_classHasModifier
Eternal ID of this version: #1008753/2
Text MD5: e8a1113b8992ccb8d80795ccceaf25d1
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-12 13:56:30
Source code size: 189 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 541 / 605
Version history: 1 change(s)
Referenced in: [show references]