static Set<Field> staticFields(O o) { new HashSet<Field> fields; Class _c = _getClass(o); do { for (Field f : _c.getDeclaredFields()) if ((f.getModifiers() & Modifier.STATIC) != 0) fields.add(f); _c = _c.getSuperclass(); } while (_c != null); ret fields; }
Began life as a copy of #1010691
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016836 |
Snippet name: | staticFields - get field objects including base classes |
Eternal ID of this version: | #1016836/1 |
Text MD5: | 45f8c5f681ef6d04b834d8079af4cf93 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-04 13:32:00 |
Source code size: | 298 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 355 / 383 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |