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

13
LINES

< > BotCompany Repo | #1018910 // nonStaticFieldObjects

JavaX fragment (include)

static L<Field> nonStaticFieldObjects(O o) {
  new L<Field> fields;
  Class _c = _getClass(o);
  do {
    for (Field f : _c.getDeclaredFields())
      if ((f.getModifiers() & Modifier.STATIC) == 0) {
        f.setAccessible(true);
        fields.add(f);
      }
    _c = _c.getSuperclass();
  } while (_c != null);
  return fields;
}

Author comment

Began life as a copy of #1013088

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018910
Snippet name: nonStaticFieldObjects
Eternal ID of this version: #1018910/1
Text MD5: fbf2c840694a528c9c7f18b7dc75279e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-15 20:52:37
Source code size: 345 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 342 / 365
Referenced in: [show references]