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

10
LINES

< > BotCompany Repo | #1002019 // allMethodNames

JavaX fragment (include)

static L<S> allMethodNames(O o) {
  Class c = _getClass(o);
  new TreeSet<S> names;
  while (c != null) {
    for (Method m : c.getDeclaredMethods())
      names.add(m.getName());
    c = c.getSuperclass();
  }
  ret asList(names);
}

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: 682 / 1171
Version history: 1 change(s)
Referenced in: #1002427 - Accellerating 629 (SPIKE)
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010625 - methodNames - synonym of allMethodNames
#1016496 - allLiveMethods - does not return static methods if you pass an instance
#3000382 - Answer for ferdie (>> t = 1, f = 0)