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

10
LINES

< > BotCompany Repo | #1002019 // allMethodNames

JavaX fragment (include)

1  
static L<S> allMethodNames(O o) {
2  
  Class c = _getClass(o);
3  
  new TreeSet<S> names;
4  
  while (c != null) {
5  
    for (Method m : c.getDeclaredMethods())
6  
      names.add(m.getName());
7  
    c = c.getSuperclass();
8  
  }
9  
  ret asList(names);
10  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1002019
Snippet name: allMethodNames
Eternal ID of this version: #1002019/2
Text MD5: c495d365d125abb64d8013b43b80d820
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-03 05:44:00
Source code size: 242 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 683 / 1172
Version history: 1 change(s)
Referenced in: [show references]