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

8
LINES

< > BotCompany Repo | #1001123 // listFields

JavaX fragment (include)

1  
// This is for main classes that are all static.
2  
// (We don't go to base classes.)
3  
static Set<S> listFields(O c) {
4  
  new TreeSet<S> fields;
5  
  for (Field f : _getClass(c).getDeclaredFields())
6  
    fields.add(f.getName());
7  
  return fields;
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, qsqiayxyrbia, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001123
Snippet name: listFields
Eternal ID of this version: #1001123/1
Text MD5: a2444b338de3ba339bc872f135df3bcc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-26 16:50:14
Source code size: 245 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 622 / 1071
Referenced in: [show references]