Transpiled version (10688L) is out of date.
1 | static L<Method> findFunctionalInterfaceMethods(Class intrface) {
|
2 | if (!isInterface(intrface)) null; |
3 | new L<Method> l; |
4 | _MethodCache cache = getMethodCache(intrface); |
5 | |
6 | Class c = intrface; |
7 | do {
|
8 | for (Method m : c.getDeclaredMethods()) {
|
9 | S name = m.getName(); |
10 | var args = m.getParameterTypes(); |
11 | if (m.getDeclaringClass() != O.class |
12 | && !m.isDefault() && !isStaticMethod(m) && !m.isSynthetic() |
13 | && !(eq(name, "equals") && l(args) == 1 && args[0] == O.class)) |
14 | l.add(m); |
15 | } |
16 | |
17 | c = c.getSuperclass(); |
18 | } while (c != null); |
19 | |
20 | ret l; |
21 | } |
Began life as a copy of #1034765
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): gjtlkbvenryc, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1037269 |
| Snippet name: | findFunctionalInterfaceMethods |
| Eternal ID of this version: | #1037269/4 |
| Text MD5: | 751a90b83df29f6e76559f4b5bd9771a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2024-02-18 11:05:17 |
| Source code size: | 607 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 376 / 490 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |