static Map<S, Field> nonStaticFieldsMap(Class _c) {
new HashMap<S, Field> fields;
do {
for (Field f : _c.getDeclaredFields())
if ((f.getModifiers() & Modifier.STATIC) == 0)
fields.put(f.getName(), f);
_c = _c.getSuperclass();
} while (_c != null);
ret fields;
}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: | 896 / 933 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |