| 1 | static Set<S> staticFieldNames(O o) {
 | 
| 2 | new TreeSet<S> fields; | 
| 3 | Class _c = _getClass(o); | 
| 4 |   do {
 | 
| 5 | for (Field f : _c.getDeclaredFields()) | 
| 6 | if ((f.getModifiers() & Modifier.STATIC) != 0) | 
| 7 | fields.add(f.getName()); | 
| 8 | _c = _c.getSuperclass(); | 
| 9 | } while (_c != null); | 
| 10 | ret fields; | 
| 11 | } | 
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: | #1010691 | 
| Snippet name: | staticFieldNames - get field names including base classes | 
| Eternal ID of this version: | #1010691/1 | 
| Text MD5: | cf9142053dd8463adc0e72aefb076990 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-09-25 01:43:03 | 
| Source code size: | 304 bytes / 11 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 804 / 858 | 
| Referenced in: | [show references] |