JavaClass[] classes = m_javaDocParser.getJavaClasses();
for (int i = 0; i < classes.length; i++) {
JavaClass clazz = classes[i];
logInfo("parsing class [" + clazz.getFullyQualifiedName() + ']');
try {
AnnotationEnhancer enhancer = new AnnotationEnhancer(m_handler);
if (enhancer.initialize(clazz.getFullyQualifiedName(), classPath)) {
handleClassAnnotations(enhancer, clazz);
//handleInnerClassAnnotations(enhancer, clazz, destDir);
JavaMethod[] methods = clazz.getMethods();
for (int j = 0; j < methods.length; j++) {
JavaMethod method = methods[j];
if (method.isConstructor()) {
handleConstructorAnnotations(enhancer, method);
} else {
handleMethodAnnotations(enhancer, method);
}
}
JavaField[] fields = clazz.getFields();
for (int j = 0; j < fields.length; j++) {
handleFieldAnnotations(enhancer, fields[j]);
}
// write enhanced class to disk
enhancer.write(destDir);
}
} catch (ParseException pe) {
m_handler.error(pe);
// non critical, go on
} catch (CompilerException ce) {