317318319320321322323324325326327
root = parser.annotation(); AnnotationCommonTree tree = (AnnotationCommonTree) root.getTree(); AnnotationNodeVisitor visitor = new AnnotationNodeVisitor(); tree.accept(visitor); if (expectFail && reporter.hasErrors() == false) { fail(); }