static Set<S> allFieldsAbove(O o, C baseClass) { new TreeSet<S> fields; Class _c = _getClass(o); while (_c != null && _c != baseClass) { for (Field f : _c.getDeclaredFields()) fields.add(f.getName()); _c = _c.getSuperclass(); } return fields; }
Began life as a copy of #1005271
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005341 |
Snippet name: | allFieldsAbove - get field names including base classes above a certain base class |
Eternal ID of this version: | #1005341/1 |
Text MD5: | cb2a4ce15b73da58a3de77211d992cb7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-07 19:41:27 |
Source code size: | 277 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 468 / 477 |
Referenced in: | [show references] |