public class ByteKeepingASMBDIClassGenerator extends ASMBDIClassGenerator
methoddc1, methoddc2
nodehelper, ophelper
AGENT_FIELD_NAME, DYNAMIC_BELIEF_UPDATEMETHOD_PREFIX, GLOBALNAME_FIELD_NAME, INIT_EXPRESSIONS_METHOD_PREFIX
Constructor and Description |
---|
ByteKeepingASMBDIClassGenerator()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearRecentClassBytes()
Clear the list of recently generated classes.
|
java.util.Map<java.lang.String,byte[]> |
getRecentClassBytes()
Get the recently generated classes as byte array.
|
java.lang.Class<?> |
toClass(java.lang.String name,
byte[] data,
java.lang.ClassLoader loader,
java.security.ProtectionDomain domain)
Transform byte Array into Class and define it in classloader.
|
enhanceSetter, generateBDIClass, generateBDIClass, main, makeObject, replaceNativeGetter, replaceNativeSetter, transformArrayStores, transformConstructor
checkEnhanced, isAgentClass, isAgentOrCapa, isEnhanced, isGoal, isPlan, isPlanClass, isPlanMethod, transformClassNode
public ByteKeepingASMBDIClassGenerator()
public java.lang.Class<?> toClass(java.lang.String name, byte[] data, java.lang.ClassLoader loader, java.security.ProtectionDomain domain)
ASMBDIClassGenerator
toClass
in class ASMBDIClassGenerator
null
, if the class is not valid, such as Map.entry "inner Classes".public java.util.Map<java.lang.String,byte[]> getRecentClassBytes()
public void clearRecentClassBytes()