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

7
LINES

< > BotCompany Repo | #1027599 // byteBuddy_quicklyAddSubClass

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

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

1  
static Class byteBuddy_quicklyAddSubClass(S className, Class baseClass) {
2  
  byte[] classData = byteBuddy_newSubClass_bytes(className, baseClass);
3  
  File jar = programFile(className + ".jar");
4  
  createZipFileWithSingleBinaryFile(jar, className + ".class", classData);
5  
  addLibraryToCurrentProgram(jar);
6  
  ret classForName(className);
7  
}

Author comment

Began life as a copy of #1027598

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: #1027599
Snippet name: byteBuddy_quicklyAddSubClass
Eternal ID of this version: #1027599/3
Text MD5: 2e6c141a201521d7be5bcf6fe06d034d
Transpilation MD5: 5349f4b0abddd8e7cf5f8fedc6d38c73
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:31:26
Source code size: 340 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 201 / 250
Version history: 2 change(s)
Referenced in: [show references]