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

9
LINES

< > BotCompany Repo | #1024322 // classAndSuperclasses

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (1684L/11K).

1  
static L<Class> classAndSuperclasses(O o) {
2  
  Class c = _getClass(o);
3  
  if (c == null) null;
4  
  new L<Class> out;
5  
  out.add(c);
6  
  while ((c = c.getSuperclass()) != null)
7  
    out.add(c);
8  
  ret out;
9  
}

Author comment

Began life as a copy of #1022198

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024322
Snippet name: classAndSuperclasses
Eternal ID of this version: #1024322/1
Text MD5: f2bb5ae4a8c6a32e9eb87fa4d75849d5
Transpilation MD5: 4bc106984de113907007b1a75b33890e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-02 13:45:35
Source code size: 205 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 195 / 277
Referenced in: [show references]