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).

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

Author comment

Began life as a copy of #1009536

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

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: 186 / 257
Version history: 2 change(s)
Referenced in: [show references]