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

17
LINES

< > BotCompany Repo | #1004543 - class DynamicObject

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

Libraryless. Click here for Pure Java version (2154L/14K).

static new ThreadLocal<Boolean> DynamicObject_loading;

static class DynamicObject {
  S className; // just the name, without the "main$"
  LinkedHashMap<S, O> fieldValues;
  
  *() {}
  // className = just the name, without the "main$"
  *(S *className) {}
  
  Map<S, O> _map() { ret fieldValues; }
  
  toString {
    ret getClass() == DynamicObject.class ? "dyn " + className
      : super.toString();
  }
}

Author comment

We merged stuff from Concept here to allow for loading unknown concepts.

download  show line numbers  debug dex   

Travelled to 25 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, fehiwqupcyrn, gwrvuhgaqvyk, imzmzdywqqli, ishqpsrjomds, jcllbfdqhrgy, jtubtzbbkimh, lhdilzshxjzv, lpdgvwnxivlt, lulzaavyztxj, mqqgnosmbjvj, ofpaelxlmzfo, onxytkatvevr, ppjhyzlbdabe, sawdedvomwva, tslmcundralx, tvejysmllsmz, whxojlpjdney, wtqryiryparv, xfddqsrefgvo, xprdwmaupziu, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004543
Snippet name: class DynamicObject
Eternal ID of this version: #1004543/8
Text MD5: c5935f799336651e19047ef1d42903a3
Transpilation MD5: 97f16232052f2275a8ead440db4c2476
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-09 23:28:58
Source code size: 427 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 504 / 15306
Version history: 7 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1004543 & http://1004543.tinybrain.de