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

6
LINES

< > BotCompany Repo | #1002202 // getNameOfPublicClass

JavaX fragment (include)

1  
static S getNameOfPublicClass(L<S> tok) {
2  
  for (L<S> c : allClasses(tok))
3  
    if (hasModifier(c, "public"))
4  
      return getClassDeclarationName(c);
5  
  return null;
6  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002202
Snippet name: getNameOfPublicClass
Eternal ID of this version: #1002202/1
Text MD5: 3de4d20135b7252569673b829e264d70
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-25 18:23:00
Source code size: 173 bytes / 6 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 639 / 1122
Referenced in: [show references]