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

10
LINES

< > BotCompany Repo | #1035278 // findMethodsNamed_cached

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7888L/44K).

// finds static and non-static methods.

static L<Method> findMethodsNamed_cached(O obj, S method) {
  ret findMethodsNamed_cached(_getClass(obj), method);
}

static L<Method> findMethodsNamed_cached(Class c, S method) {
  if (c == null) null;
  ret getMethodCache(c).cache.get(method);
}

Author comment

Began life as a copy of #1007767

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035278
Snippet name: findMethodsNamed_cached
Eternal ID of this version: #1035278/4
Text MD5: 1eb0f9c611c52e26a503cce3592a2a9a
Transpilation MD5: f183e3ee47ff48a83cc33d2e5e23ceec
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-28 22:15:27
Source code size: 297 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 55 / 90
Version history: 3 change(s)
Referenced in: [show references]