private static final boolean DEBUG = false;
@Override
public void visitClassDeclaration(ClassDeclaration cd) {
try {
SephSingleton ss = cd.getAnnotation(SephSingleton.class);
SephKind sk = cd.getAnnotation(SephKind.class);
if(ss == null && sk == null) {
return;
}
final boolean kind = sk != null;
String[] parents = ss != null ? ss.parents() : sk.parents();
Map<String, MethodDeclaration> methods = new LinkedHashMap<String, MethodDeclaration>();
for(MethodDeclaration md : cd.getMethods()) {
SephMethod anno = md.getAnnotation(SephMethod.class);