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

8
LINES

< > BotCompany Repo | #1015961 // dm_getModule - takes ID, stem, service name or actual module and returns actual module instance (virtual DynModule)

JavaX fragment (include)

static O dm_getModule(O moduleOrID) {
  if (moduleOrID == null || eq(moduleOrID, "")) null;
  if (isString(moduleOrID) && isIdentifier(moduleOrID/S))
    ret dm_getService(moduleOrID/S);
  if (isStringOrIntOrLong(moduleOrID))
    ret dm_callOS('getDynModuleByID, str(moduleOrID));
  ret dm_resolveModule(moduleOrID);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 19 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, ofpaelxlmzfo, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, veepotesqksf, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1015961
Snippet name: dm_getModule - takes ID, stem, service name or actual module and returns actual module instance (virtual DynModule)
Eternal ID of this version: #1015961/15
Text MD5: b3c88feabd6f9edf37c253810e111057
Author: stefan
Category: javax / dynamic modules
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-13 21:59:21
Source code size: 325 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 622 / 718
Version history: 14 change(s)
Referenced in: [show references]