*/
public void convertProcessedClasses(HotSwapper hotSwapper, CtClass clazz,
Collection fieldReads, Collection fieldWrites, boolean constructor)
{
AOPClassPool classPool = (AOPClassPool) clazz.getClassPool();
CodeConverter codeConverter = new CodeConverter();
for (Iterator iterator = fieldReads.iterator(); iterator.hasNext(); )
{
CtField field = (CtField) iterator.next();
codeConverter.replaceFieldRead(field, clazz, fieldAccessTransformer.fieldRead(field.getName()));
}
for (Iterator iterator = fieldWrites.iterator(); iterator.hasNext(); )
{
CtField field = (CtField) iterator.next();
codeConverter.replaceFieldWrite(field, clazz, fieldAccessTransformer.fieldWrite(field.getName()));
}
if (constructor)
{
codeConverter.replaceNew(clazz, clazz, ConstructorExecutionTransformer.constructorFactory(clazz.getSimpleName()));
}
synchronized(processedClasses)
{
for (Iterator iterator = processedClasses.iterator(); iterator.hasNext();)