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

14
LINES

< > BotCompany Repo | #1010332 // web_addLabels - add labels to node

JavaX fragment (include)

static void web_addLabels(WebNode node, L<Lisp> labels) {
  node.addLabels(labels);
}

static void web_addLabels(WebNode node, WebNode src) {
  if (src != null) node.addLabels(src.labels);
}

static void web_addLabels(WebNode node, O labels) {
  if (labels == null) ret;
  if (labels instanceof S) ret with web_addLabel(node, (S) labels);
  if (labels instanceof Collection) ret with web_addStrings(node, (Collection) labels);
  fail("huh: " + className(labels));
}

Author comment

Began life as a copy of #1010129

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010332
Snippet name: web_addLabels - add labels to node
Eternal ID of this version: #1010332/7
Text MD5: 452be614a0187c2b421670d7fba91e25
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-11 01:34:28
Source code size: 478 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 399
Version history: 6 change(s)
Referenced in: [show references]