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   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, 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: 428 / 6220
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1001112 & http://1001112.tinybrain.de