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

6
LINES

< > BotCompany Repo | #1025389 - fieldAsVar

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

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

static IVar fieldAsVar(O object, Field f) {
  ret f == null ? null : new IVar {
    public void set(O a) ctex { f.set(object, a); }
    public O get() ctex { ret f.get(object); }
  };
}

Author comment

Began life as a copy of #1009536

download  show line numbers  debug dex   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1025389
Snippet name: fieldAsVar
Eternal ID of this version: #1025389/3
Text MD5: df2a61fe50a9b94ba6632e800dd48f72
Transpilation MD5: 1d7ee2b9fd4147e95638dfdc80b3ab06
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-27 18:13:05
Source code size: 190 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 13 / 38
Version history: 2 change(s)
Referenced in: [show references]

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