1 | static S dynRenderConcept(O c) { |
2 | if (c == null) ret "null"; |
3 | new StringBuilder buf; |
4 | buf.append(c.id + " " + shortDynamicClassName(c)); |
5 | for (S field : listFields(c)) { |
6 | O val = cget(c, field); |
7 | if (val != null) { |
8 | buf.append(" " + field + "="); |
9 | buf.append(dynRenderConceptShort(val)); |
10 | } |
11 | } |
12 | ret str(buf); |
13 | } |
14 | |
15 | static S dynRenderConceptShort(O val) { |
16 | if (val instanceof DynamicObject) { |
17 | O id = getOpt(val, "id"); |
18 | if (id instanceof Long) |
19 | ret shortDynamicClassName(val) + id; |
20 | } |
21 | ret struct(val); |
22 | } |
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: | #1005263 |
Snippet name: | dynRenderConcept - render concept (possibly) loaded through safeLoadConcepts [dev.] |
Eternal ID of this version: | #1005263/1 |
Text MD5: | 832feba46863666a541ff4c551c04c52 |
Author: | stefan |
Category: | javax / concepts |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-10-27 22:30:13 |
Source code size: | 563 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 448 / 457 |
Referenced in: | [show references] |