1 | static Method findMethod_cached(O o, S method, O... args) ctex { |
2 | if (o == null) null; |
3 | if (o cast Class) { |
4 | _MethodCache cache = callOpt_getCache(o); |
5 | L<Method> methods = cache.cache.get(method); |
6 | if (methods != null) for (Method m : methods) |
7 | if (isStaticMethod(m) && findMethod_checkArgs(m, args, false)) |
8 | ret m; |
9 | null; |
10 | } else { |
11 | _MethodCache cache = callOpt_getCache(o.getClass()); |
12 | L<Method> methods = cache.cache.get(method); |
13 | if (methods != null) for (Method m : methods) |
14 | if (findMethod_checkArgs(m, args, false)) |
15 | ret m; |
16 | null; |
17 | } |
18 | } |
Began life as a copy of #1020645
download show line numbers debug dex old transpilations
Travelled to 24 computer(s): ayivmpnvhhik, bhatertpkbcr, cfunsshuasjs, cvvynrlkszfz, dpqxeycirhfy, ekrmjmnbrukm, ishqpsrjomds, jcllbfdqhrgy, lnbujpyubztb, mqqgnosmbjvj, mqsvbyillbrs, ofpaelxlmzfo, omdjrrnzbjjv, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, snaazhdonpnp, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xfddqsrefgvo, xrpafgyirdlv, yanjaxplzisb
No comments. add comment
Snippet ID: | #1021526 |
Snippet name: | findMethod_cached |
Eternal ID of this version: | #1021526/3 |
Text MD5: | 8e20097c090a44befc45b497beeb7b6e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-16 20:56:33 |
Source code size: | 613 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 383 / 4348 |
Version history: | 2 change(s) |
Referenced in: | [show references] |