}
public void process() {
int counter = 0;
AnnotationTypeDeclaration storeEntryAnnDecls = decls.iterator().next();
DeclarationFilter classFilter = DeclarationFilter.getFilter(ClassDeclaration.class);
for (Declaration decl : classFilter.filter(env.getDeclarationsAnnotatedWith(storeEntryAnnDecls))) {
if (decl != null) {
ClassDeclaration classDecl = (ClassDeclaration) decl;
ClassInfo classInfo = new ClassInfo(classDecl);
classInfo.setJavaDoc(classDecl.getDocComment());
classInfos.add(classInfo);
qName = classDecl.getQualifiedName();
DeclarationFilter setterFilter = new DeclarationFilter() {
public boolean matches(Declaration d) {
return d.getSimpleName().startsWith("set");
}
};
Collection<? extends MethodDeclaration> methods = classDecl.getMethods();
ParameterDeclaration paramType = null;
for (MethodDeclaration m : setterFilter.filter(methods)) {
MethodInfo methodInfo = new MethodInfo();
String attributeName = null;
Attribute attrAnn = m.getAnnotation(Attribute.class);
if (attrAnn != null) {
attributeName = attrAnn.name();