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

10
LINES

< > BotCompany Repo | #1024027 // dm_originalFieldValue

JavaX fragment (include)

1  
sO mapMethodLike dm_originalFieldValue(S field, O mod) {
2  
  mod = dm_getModule(mod);
3  
  if (mod == null) null;
4  
  O tempInstance = newInstance(mod.getClass());
5  
  try {
6  
    ret getOpt(tempInstance, field);
7  
  } finally {
8  
    cleanUp(tempInstance);
9  
  }
10  
}

Author comment

Began life as a copy of #1023947

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: #1024027
Snippet name: dm_originalFieldValue
Eternal ID of this version: #1024027/1
Text MD5: 4f2656e5826a9f0fab2a7fe4675a07c9
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-17 21:26:03
Source code size: 257 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 203 / 241
Referenced in: [show references]