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

11
LINES

< > BotCompany Repo | #1027598 // byteBuddy_newSubClass_bytes

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

Uses 3273K of libraries. Click here for Pure Java version (12743L/86K).

1  
lib 1400352 // ByteBuddy
2  
3  
import net.bytebuddy.*;
4  
import net.bytebuddy.dynamic.*;
5  
6  
static byte[] byteBuddy_newSubClass_bytes(S className, Class baseClass) {
7  
  ret (byte[]) _get binaryRepresentation(new ByteBuddy()
8  
      .subclass(Concept)
9  
      .name(className)
10  
      .make());
11  
}

Author comment

Began life as a copy of #1027594

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027598
Snippet name: byteBuddy_newSubClass_bytes
Eternal ID of this version: #1027598/1
Text MD5: b9bfb13a6bc803d93f5b2c2a9d3e3de4
Transpilation MD5: 3c5909cb97f5824b853d04fab9507388
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-25 14:26:03
Source code size: 289 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 153 / 215
Referenced in: [show references]