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

9
LINES

< > BotCompany Repo | #1006703 // myNonAbstractClassesImplementing - probably better than nonAbstractClassesImplementing (doesn't go through class loader's files)

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

Libraryless. Click here for Pure Java version (2771L/16K).

static <A> L<Class<? extends A>> myNonAbstractClassesImplementing(Class<A> base) {
  L<Class<? extends A>> l = new L;
  for (S name : myInnerClasses()) {
    Class c = _getClass(mcName() + "$" + name);
    if (c != null && !isAbstract(c) && isSubtypeOf(c, base))
      l.add(c);
  }
  ret l;
}

Author comment

Began life as a copy of #1006697

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006703
Snippet name: myNonAbstractClassesImplementing - probably better than nonAbstractClassesImplementing (doesn't go through class loader's files)
Eternal ID of this version: #1006703/4
Text MD5: f27880d658e9942bd65724a5988abade
Transpilation MD5: 04d34e908403dfaa00dc7d46a47f4b44
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-05 00:26:23
Source code size: 301 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 664
Version history: 3 change(s)
Referenced in: [show references]