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); } }; }
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: | 187 / 257 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1025412 - fieldGet - Field.get() with wrapped exceptions |