ConstantPool cp;
if (COMPACT_CONSTANTS) {
cp = new ConstantPool();
classVisitor = new ClassConstantsCollector(classVisitor, cp);
}
classVisitor = new NameTranslatorClassVisitor(classVisitor, NameTranslator.getGeneralTranslator());
classVisitor = new ClassWeaver(classVisitor,
lazy, stripAttributes, target, listener);
classVisitor = new NameTranslatorClassVisitor(classVisitor, NameTranslator.getHarmonyTranslator());
// StringBuilder translation will be done before general weaving and
// mirror translation: trimToSize() calls will be processed correctly
// and no need to do translations in general weaving process
classVisitor = new NameTranslatorClassVisitor(classVisitor, NameTranslator.getStringBuilderTranslator());
if (stripSignatures) {
classVisitor = new SignatureStripper(classVisitor);
}