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).

static L<Class> classAndSuperclasses(O o) {
  Class c = _getClass(o);
  if (c == null) null;
  new L<Class> out;
  out.add(c);
  while ((c = c.getSuperclass()) != null)
    out.add(c);
  ret out;
}

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: 194 / 276
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)