Libraryless. Click here for Pure Java version (10102L/56K).
static Map<Method, Int> scoredMethods_withPrimitiveWidening_onTypes(O o, S method, Class... argTypes) ctex { if (o cast Class) { _MethodCache cache = callOpt_getCache(o); L<Method> methods = cache.cache.get(method); new Map<Method, Int> scores; if (methods != null) for (Method m : methods) { continue unless isStaticMethod(m); int score = methodApplicabilityScore_withPrimitiveWidening_onTypes(m, argTypes); if (score < Int.MAX_VALUE) scores.put(m, score); } ret scores; } else { if (o == null) null; _MethodCache cache = callOpt_getCache(o.getClass()); L<Method> methods = cache.cache.get(method); new Map<Method, Int> scores; if (methods != null) for (Method m : methods) { int score = methodApplicabilityScore_withPrimitiveWidening_onTypes(m, argTypes); if (score < Int.MAX_VALUE) scores.put(m, score); } ret scores; } }
Began life as a copy of #1036431
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1036432 |
Snippet name: | scoredMethods_withPrimitiveWidening_onTypes - even better method resolution |
Eternal ID of this version: | #1036432/1 |
Text MD5: | 6434b19c674968135ac6df3e2c3a1c36 |
Transpilation MD5: | 7688a589f936e0155fe4727437fe6a7f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-12-11 23:15:03 |
Source code size: | 954 bytes / 25 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 162 / 209 |
Referenced in: | [show references] |