/** * Go through the current compilation unit and look for ast nodes that has annotations. * * @return the map between ast node and */ protected Map<ASTNode, List<Annotation>> getASTNodesWithAnnotations() { final Map<ASTNode, List<Annotation>> astNode2Anno = new HashMap<ASTNode, List<Annotation>>(); final AnnotatedNodeVisitor visitor = new AnnotatedNodeVisitor(astNode2Anno); _astRoot.accept(visitor); return astNode2Anno; }