Libraryless. Click here for Pure Java version (5411L/30K).
1 | sbool canNewPreciseCall(O o, S method, O... args) ctex { |
2 | if (o == null) true; |
3 | bool staticCall = o instanceof Class; |
4 | Class c = staticCall ? (Class) o : o.getClass(); |
5 | O target = staticCall ? null : o; |
6 | |
7 | _MethodCache cache = callOpt_getCache(c); |
8 | L<Method> methods = cache.cache.get(method); |
9 | if (methods != null) for (Method m : methods) { |
10 | if (staticCall && !isStaticMethod(m)) continue; |
11 | |
12 | int score = methodApplicabilityScore_withPrimitiveWidening(m, args); |
13 | if (score < Int.MAX_VALUE) true; |
14 | } |
15 | |
16 | ret canCallWithVarargs(o, method, args); |
17 | } |
Began life as a copy of #1034745
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034754 |
Snippet name: | canNewPreciseCall |
Eternal ID of this version: | #1034754/4 |
Text MD5: | 6e06012ec2ff3496399602fc133b8942 |
Transpilation MD5: | 1ab7c850c5750ce891903c1b08fa1905 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-08 03:24:21 |
Source code size: | 587 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 125 / 191 |
Version history: | 3 change(s) |
Referenced in: | [show references] |