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

10
LINES

< > BotCompany Repo | #1007938 - getOpt_findField

JavaX fragment (include)

static Field getOpt_findField(Class<?> c, String field) {
  Class _c = c;
  do {
    for (Field f : _c.getDeclaredFields())
      if (f.getName().equals(field))
        return f;
    _c = _c.getSuperclass();
  } while (_c != null);
  ret null;
}

download  show line numbers  debug dex   

Travelled to 15 computer(s): aoiabmzegqzx, ayfdnjdhpjha, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, kltaiputbqfu, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, ppjhyzlbdabe, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1007938
Snippet name: getOpt_findField
Eternal ID of this version: #1007938/4
Text MD5: f2a0180e4cb85c3426f9fda672948fb0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-17 18:59:39
Source code size: 254 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 306 / 884
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1007938 & http://1007938.tinybrain.de