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

9
LINES

< > BotCompany Repo | #1015825 // findInstanceMethod - find possibly non-static method from Class

JavaX fragment (include)

1  
static Method findInstanceMethod(Class c, String method, Object... args) {
2  
  while (c != null) {
3  
    for (Method m : c.getDeclaredMethods())
4  
      if (m.getName().equals(method) && findMethod_checkArgs(m, args, false))
5  
        ret m;
6  
    c = c.getSuperclass();
7  
  }
8  
  null;
9  
}

Author comment

Began life as a copy of #1002795

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: #1015825
Snippet name: findInstanceMethod - find possibly non-static method from Class
Eternal ID of this version: #1015825/6
Text MD5: b7bd73c9f292a2b1e29158edab430f20
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-28 04:05:21
Source code size: 284 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 387 / 440
Version history: 5 change(s)
Referenced in: [show references]