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

11
LINES

< > BotCompany Repo | #1018911 // nonStaticNonPrimitiveFieldObjects_uncached

JavaX fragment (include)

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

Author comment

Began life as a copy of #1018910

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: #1018911
Snippet name: nonStaticNonPrimitiveFieldObjects_uncached
Eternal ID of this version: #1018911/5
Text MD5: 02d42832cc0f13d361564c16dc2a0682
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-12 12:23:10
Source code size: 372 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 304 / 337
Version history: 4 change(s)
Referenced in: [show references]