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

19
LINES

< > BotCompany Repo | #1001112 // getProgramID - now returns formatted ID

JavaX fragment (include)

!include once #1027168 // programID variable

static String getProgramID() {
  return nempty(programID) ? formatSnippetIDOpt(programID) : "?";
}

ifndef LeanMode
// TODO: ask JavaX instead
static String getProgramID(Class c) {
  S id = (String) getOpt(c, "programID");
  if (nempty(id))
    ret formatSnippetID(id);
  ret "?";
}
endifndef

static String getProgramID(Object o) {
  ret getProgramID(getMainClass(o));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001112
Snippet name: getProgramID - now returns formatted ID
Eternal ID of this version: #1001112/3
Text MD5: a9efb76ce590e93ada5d95c6dc285bf4
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-23 22:09:03
Source code size: 435 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 773 / 6693
Version history: 2 change(s)
Referenced in: [show references]