1 | static L<Field> allFieldObjects(O o) { |
2 | new L<Field> fields; |
3 | Class _c = _getClass(o); |
4 | do { |
5 | for (Field f : _c.getDeclaredFields()) { |
6 | f.setAccessible(true); |
7 | fields.add(f); |
8 | } |
9 | _c = _c.getSuperclass(); |
10 | } while (_c != null); |
11 | return fields; |
12 | } |
Began life as a copy of #1005271
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: | #1013088 |
Snippet name: | allFieldObjects - get field objects including base classes |
Eternal ID of this version: | #1013088/3 |
Text MD5: | 32a3a6139e989df55f2f5c89f15c6f8f |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-25 03:50:20 |
Source code size: | 279 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 424 / 454 |
Version history: | 2 change(s) |
Referenced in: | [show references] |