Package jadex.bdiv3
Interface IBDIClassGenerator
-
- All Known Implementing Classes:
AbstractAsmBdiClassGenerator
,ASMBDIClassGenerator
,ByteKeepingASMBDIClassGenerator
public interface IBDIClassGenerator
Interface for BDI class enhancement/generation.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AGENT_FIELD_NAME
Name of the field that is injected for agent name.static java.lang.String
DYNAMIC_BELIEF_UPDATEMETHOD_PREFIX
static java.lang.String
GLOBALNAME_FIELD_NAME
Name of the field that is injected for globalname.static java.lang.String
INIT_EXPRESSIONS_METHOD_PREFIX
static java.lang.String
INITARGS_FIELD_NAME
Name of the field in which the initargs are injected.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static void
checkEnhanced(java.lang.Class<?> clazz)
Check if a bdi agent class was enhanced.java.util.List<java.lang.Class<?>>
generateBDIClass(java.lang.String clname, BDIModel micromodel, java.lang.ClassLoader dummycl)
Generate class, including inner classes.static boolean
isEnhanced(SClassReader.ClassFileInfo clazzfileinfo)
Returns whether a class is already enhanced.static boolean
isEnhanced(java.lang.Class<?> clazz)
Returns whether a class is already enhanced.
-
-
-
Field Detail
-
AGENT_FIELD_NAME
static final java.lang.String AGENT_FIELD_NAME
Name of the field that is injected for agent name.- See Also:
- Constant Field Values
-
GLOBALNAME_FIELD_NAME
static final java.lang.String GLOBALNAME_FIELD_NAME
Name of the field that is injected for globalname.- See Also:
- Constant Field Values
-
INITARGS_FIELD_NAME
static final java.lang.String INITARGS_FIELD_NAME
Name of the field in which the initargs are injected.- See Also:
- Constant Field Values
-
DYNAMIC_BELIEF_UPDATEMETHOD_PREFIX
static final java.lang.String DYNAMIC_BELIEF_UPDATEMETHOD_PREFIX
- See Also:
- Constant Field Values
-
INIT_EXPRESSIONS_METHOD_PREFIX
static final java.lang.String INIT_EXPRESSIONS_METHOD_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateBDIClass
java.util.List<java.lang.Class<?>> generateBDIClass(java.lang.String clname, BDIModel micromodel, java.lang.ClassLoader dummycl) throws JadexBDIGenerationException
Generate class, including inner classes.- Returns:
- the List of classes generated.
- Throws:
JadexBDIGenerationException
-
isEnhanced
static boolean isEnhanced(java.lang.Class<?> clazz)
Returns whether a class is already enhanced.- Parameters:
clazz
-- Returns:
- true, if already enhanced, else false.
-
isEnhanced
static boolean isEnhanced(SClassReader.ClassFileInfo clazzfileinfo)
Returns whether a class is already enhanced.- Parameters:
clazz
- The clazz info.- Returns:
- true, if already enhanced, else false.
-
checkEnhanced
static void checkEnhanced(java.lang.Class<?> clazz)
Check if a bdi agent class was enhanced.- Throws:
java.lang.RuntimeException
- if was not enhanced.
-
-