|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkorat.instrumentation.InstrumentationManager
public class InstrumentationManager
The place for various constants, utility method and such related to instrumentation. This is also the place for obtaining the currently configured instrumenter, which should be used throughout the program (by the class loader before loading the class, for example).
IInstrumenter
,
AbstractInstrumenter
Field Summary | |
---|---|
static String |
_KORAT_ARRAY_FIELD_PREFIX
|
protected static Set<CtClass> |
alreadyInstrumented
global repository of the instrumented classes |
static String |
GETSETTER_TEMPLATE
|
static String |
GETTER_PREFIX
|
static String |
ID_FIELD_PREFIX
|
private static AbstractInstrumenter |
instrumenter
|
static String |
KORAT_FIELD_PREFIX
|
static String |
SETTER_TEMPLATE
|
static String |
SETTER_THIS_FIELD_NAME
|
static String |
TESTER_FIELD_NAME
|
Constructor Summary | |
---|---|
InstrumentationManager()
|
Method Summary | |
---|---|
static void |
addToAlreadyInstrumented(CtClass clz)
|
static String |
getGetSetterName(String fieldName)
|
static String |
getGetterName(String fieldName)
|
static String |
getIdFieldName(String fieldName)
|
static IInstrumenter |
getInstrumenter()
|
static String |
getKoratArrayFieldName(String fName)
For the given array field name returns the name of the corresponding KoratArray field. |
static String |
getSetterClassName(String fieldName)
|
protected static void |
instrumentClassIfNeeded(CtClass clz)
Instruments the given class if not already instrumented |
static boolean |
isKoratField(String fieldName)
|
static boolean |
isKoratMethod(String methodName)
|
static void |
loadAllClasses(ClassLoader cl)
Loads all instrumented classes using class loader cl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static AbstractInstrumenter instrumenter
protected static Set<CtClass> alreadyInstrumented
public static final String KORAT_FIELD_PREFIX
public static final String TESTER_FIELD_NAME
public static final String ID_FIELD_PREFIX
public static final String GETTER_PREFIX
public static final String SETTER_THIS_FIELD_NAME
public static final String SETTER_TEMPLATE
public static final String GETSETTER_TEMPLATE
public static final String _KORAT_ARRAY_FIELD_PREFIX
Constructor Detail |
---|
public InstrumentationManager()
Method Detail |
---|
public static IInstrumenter getInstrumenter()
public static void addToAlreadyInstrumented(CtClass clz)
protected static void instrumentClassIfNeeded(CtClass clz) throws CannotCompileException, NotFoundException, IOException
clz
- class to instrument
CannotCompileException
NotFoundException
IOException
public static void loadAllClasses(ClassLoader cl)
cl
- public static boolean isKoratField(String fieldName)
fieldName
- - field name
public static boolean isKoratMethod(String methodName)
methodName
- - method name
public static String getGetterName(String fieldName)
public static String getIdFieldName(String fieldName)
public static String getGetSetterName(String fieldName)
public static String getSetterClassName(String fieldName)
public static String getKoratArrayFieldName(String fName)
fName
- name of the array field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |