public class ByteKeepingASMBDIClassGenerator extends ASMBDIClassGenerator
AbstractAsmBdiClassGenerator.MethodBeliefs
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, findBeliefs, findParameters, generateBDIClass, generateBDIClass, main, makeObject, replaceNativeGetter, replaceNativeSetter, transformArrayStores, transformConstructor
addBeliefEventsToConditions, checkEnhanced, findMethodBelief, getGoal, isAgentClass, isAgentOrCapa, isEnhanced, isGoal, isGoalClass, 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()