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

9
LINES

< > BotCompany Repo | #1015917 // nonAbstractClassesInRealmImplementing

JavaX fragment (include)

static L<Class> nonAbstractClassesInRealmImplementing(Class realm, Class base, L<S> candidateClassNames) {
  new L<Class> l;
  for (S name : candidateClassNames) pcall {
    Class c = _getClass(realm, "main$" + name);
    if (c != null && !isAbstract(c) && isSubtypeOf(c, base))
      l.add(c);
  }
  ret l;
}

Author comment

Began life as a copy of #1006703

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: #1015917
Snippet name: nonAbstractClassesInRealmImplementing
Eternal ID of this version: #1015917/3
Text MD5: a950afbcd5cb462c95f4d4be78ee1cca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-31 21:18:53
Source code size: 317 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 405 / 413
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020727 - nonAbstractClassesInRealmWithSuperclassShortNamed