// now try to transform the bytecode and see if we get any errors
// we use a different transformer each time so the rules don't interfere with each other
Transformer transformer = null;
try {
transformer = new Transformer(null, emptyInitialTexts, emptyInitialFiles, false);
} catch (Exception e) {
// will not happen!
}
// ok, we try transforming the actual class mentioned in the rule -- this may be an interface
// or an abstract class so we may not get any results out of the transform
info("Checking rule " + script.getName() + " against class " + targetClass.getName());
bytes = transformer.transform(script, loader, targetClass.getName(), bytes);
// maybe dump the transformed bytecode
Transformer.maybeDumpClass(targetClass.getName(), bytes);
}
// see if we have a record of any transform