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

12
LINES

< > BotCompany Repo | #1001152 // getMainClass

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

Transpiled version (2799L) is out of date.

static Class getMainClass() {
  return mc();
}

static Class getMainClass(O o) ctex {
  if (o == null) null;
  if (o instanceof Class && eq(((Class) o).getName(), "x30")) ret (Class) o;
  ClassLoader cl = (o instanceof Class ? (Class) o : o.getClass()).getClassLoader();
  if (cl == null) null;
  S name = mainClassNameForClassLoader(cl);
  ret loadClassFromClassLoader_orNull(cl, name);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 19 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1001152
Snippet name: getMainClass
Eternal ID of this version: #1001152/7
Text MD5: 387e6175854997158ce644a6f561d210
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 19:08:14
Source code size: 400 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 860 / 7695
Version history: 6 change(s)
Referenced in: [show references]