}
// make sure that they are on classes
for (TypeDeclaration t : optionBeans) {
if(t instanceof ClassDeclaration) {
ClassDeclaration cd = (ClassDeclaration)t;
try {
FileWriter out = new FileWriter(new File(outDir,cd.getQualifiedName()+"."+format.toLowerCase()));
AnnotationVisitor writer;
if(format.equals("XML"))
writer = new XmlWriter(out,cd);
else
writer = new HtmlWriter(out);
env.getMessager().printNotice("Processing "+cd.getQualifiedName());
scan(cd, writer);
} catch (IOException e) {
env.getMessager().printError(e.getMessage());
}
} else {