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

1  
static L<Class> nonAbstractClassesInRealmWithSuperclassShortNamed(Class realm, S base, L<S> candidateClassNames) {
2  
  new L<Class> l;
3  
  ClassLoader cl = realm.getClassLoader();
4  
  S prefix = mainClassNameForClassLoader(cl) + "$";
5  
  for (S name : candidateClassNames) pcall {
6  
    Class c = getClass_vmName(realm, prefix + name);
7  
    if (c != null && !isAbstract(c) && hasSuperclassShortNamed(c, base))
8  
      l.add(c);
9  
  }
10  
  ret l;
11  
}

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: 259 / 323
Version history: 5 change(s)
Referenced in: [show references]