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

11
LINES

< > BotCompany Repo | #1030921 // scanConceptForRefsWithFieldNames

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (14881L/96K).

static LPair<Concept.Ref, S> scanConceptForRefsWithFieldNames(Concept c) {
  LPair<Concept.Ref, S> refs = new L;
  if (c != null) for (S field, O o : objectToMap(c)) {
    if (o cast Concept.Ref)
      refs.add(pair(o, field));
    else if (o cast Concept.RefL)
      for (int i = 0; i < l(o.l); i++)
        refs.add(pair((Concept.Ref) o.l.get(i), field + "[" + (i+1) + "]"));
  }
  ret refs;
}

Author comment

Began life as a copy of #1030876

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030921
Snippet name: scanConceptForRefsWithFieldNames
Eternal ID of this version: #1030921/10
Text MD5: c9e911a190da56d074ed87b1efaf7146
Transpilation MD5: 65b0849838ee395bab32f07b5eb70e28
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-04-10 23:30:38
Source code size: 405 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 172 / 275
Version history: 9 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030924 - fieldNameForConceptLink