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

12
LINES

< > BotCompany Repo | #1018185 // hasFunctionNamed - synonym of hasMethodNamed

JavaX fragment (include)

// This is a bit rough... finds static and non-static methods.
// It's usually just for error messages though, so no worries.

static boolean hasFunctionNamed(O obj, String method) {
  ret hasMethodNamed(obj, method);
}



static boolean hasFunctionNamed(Class c, String method) {
  ret hasMethodNamed(c, method);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018185
Snippet name: hasFunctionNamed - synonym of hasMethodNamed
Eternal ID of this version: #1018185/1
Text MD5: ed57a8f939bbeed760e444e58515346b
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-07 17:52:30
Source code size: 320 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 292 / 317
Referenced in: [show references]