1 | static Map<S, Field> nonStaticFieldsMap(Class _c) { |
2 | new HashMap<S, Field> fields; |
3 | do { |
4 | for (Field f : _c.getDeclaredFields()) |
5 | if ((f.getModifiers() & Modifier.STATIC) == 0) |
6 | fields.put(f.getName(), f); |
7 | _c = _c.getSuperclass(); |
8 | } while (_c != null); |
9 | ret fields; |
10 | } |
Began life as a copy of #1005720
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: | #1011699 |
Snippet name: | nonStaticFieldsMap - get field names including base classes |
Eternal ID of this version: | #1011699/1 |
Text MD5: | b93ed78cfb07696f6817336e9ffb71ed |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-02 07:46:26 |
Source code size: | 300 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 423 / 474 |
Referenced in: | [show references] |