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

21
LINES

< > BotCompany Repo | #1004932 // methodsBot

JavaX fragment (include)

static Android3 methodsBot_defaultBot;
static Lock methodsBot_defaultBotLock = lock();

static Android3 methodsBot(S name, final L<S> exposedMethods) {
  ret makeBot(name, new O {
    S answer(S s) {
      ret exposeMethods(s, exposedMethods);
    }
  });
}

static Android3 methodsBot(S name, final S... exposedMethods) {
  ret methodsBot(name, asList(exposedMethods));
}

static Android3 methodsBot() {
  lock methodsBot_defaultBotLock;
  if (methodsBot_defaultBot == null)
    methodsBot_defaultBot = methodsBot(defaultMethodsBotName(), allMethodNames(mc()));
  ret methodsBot_defaultBot;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1004932
Snippet name: methodsBot
Eternal ID of this version: #1004932/5
Text MD5: 95d982fa89bd1a49c5f55e6042d63e86
Author: stefan
Category: javax / rpc
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-20 14:37:51
Source code size: 613 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 619 / 618
Version history: 4 change(s)
Referenced in: [show references]