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

11
LINES

< > BotCompany Repo | #1020727 // nonAbstractClassesInRealmWithSuperclassShortNamed

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

Libraryless. Click here for Pure Java version (2901L/17K).

static L<Class> nonAbstractClassesInRealmWithSuperclassShortNamed(Class realm, S base, L<S> candidateClassNames) {
  new L<Class> l;
  ClassLoader cl = realm.getClassLoader();
  S prefix = mainClassNameForClassLoader(cl) + "$";
  for (S name : candidateClassNames) pcall {
    Class c = getClass_vmName(realm, prefix + name);
    if (c != null && !isAbstract(c) && hasSuperclassShortNamed(c, base))
      l.add(c);
  }
  ret l;
}

Author comment

Began life as a copy of #1015917

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020727
Snippet name: nonAbstractClassesInRealmWithSuperclassShortNamed
Eternal ID of this version: #1020727/6
Text MD5: 0acf3430ef22cde6c31fb7322718965e
Transpilation MD5: afdda5ee3dfcc48183132ef9c94b18ca
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-05 01:41:31
Source code size: 439 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 260 / 325
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)