| 1 | static L<Method> findStaticMethodsNamed(O obj, S method) {
 | 
| 2 | if (obj == null) ret null; | 
| 3 | ret findStaticMethodsNamed(_getClass(obj), method); | 
| 4 | } | 
| 5 | |
| 6 | static L<Method> findStaticMethodsNamed(Class c, S method) {
 | 
| 7 | new L<Method> l; | 
| 8 |   while (c != null) {
 | 
| 9 | for (Method m : c.getDeclaredMethods()) | 
| 10 |       if ((m.getModifiers() & Method.STATIC) != 0 && m.getName().equals(method)) {
 | 
| 11 | m.setAccessible(true); | 
| 12 | l.add(m); | 
| 13 | } | 
| 14 | c = c.getSuperclass(); | 
| 15 | } | 
| 16 | ret l; | 
| 17 | } | 
Began life as a copy of #1007767
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1007831 | 
| Snippet name: | findStaticMethodsNamed | 
| Eternal ID of this version: | #1007831/1 | 
| Text MD5: | 14d5a2bfa1f4d12817008abaf1a8d557 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-04-11 13:51:46 | 
| Source code size: | 488 bytes / 17 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 760 / 746 | 
| Referenced in: | [show references] |