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)

static Method findInstanceMethod(Class c, String method, Object... args) {
  while (c != null) {
    for (Method m : c.getDeclaredMethods())
      if (m.getName().equals(method) && findMethod_checkArgs(m, args, false))
        ret m;
    c = c.getSuperclass();
  }
  null;
}

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: 385 / 437
Version history: 5 change(s)
Referenced in: [show references]