Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1015807 // allNonStaticNonTransientFields

JavaX fragment (include)

static Set<S> allNonStaticNonTransientFields(O o) {
  new TreeSet<S> fields;
  Class _c = _getClass(o);
  do {
    for (Field f : _c.getDeclaredFields())
      if ((f.getModifiers() & (Modifier.STATIC|Modifier.TRANSIENT)) == 0)
        fields.add(f.getName());
    _c = _c.getSuperclass();
  } while (_c != null);
  return fields;
}

Author comment

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: #1015807
Snippet name: allNonStaticNonTransientFields
Eternal ID of this version: #1015807/1
Text MD5: 67d63f87820335015bb2d0ef6815f69c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-27 23:45:42
Source code size: 342 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 441 / 490
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1024566 - nonStaticNonTransientFields_withoutSuperclasses