final public AnnotationDeclaration AnnotationTypeDeclaration(Modifier modifier) throws ParseException { String name; List members; int line = modifier.beginLine; int column = modifier.beginColumn; jj_consume_token(AT); if (line == -1) {line=token.beginLine; column=token.beginColumn;} jj_consume_token(INTERFACE); jj_consume_token(IDENTIFIER); name = token.image; members = AnnotationTypeBody(); {if (true) return new AnnotationDeclaration(line, column, token.endLine, token.endColumn,popJavadoc(), modifier.modifiers, modifier.annotations, name, members);} throw new Error("Missing return statement in function"); }
final public AnnotationDeclaration AnnotationTypeDeclaration(Modifier modifier) throws ParseException { NameExpr name; List members; int line = modifier.beginLine; int column = modifier.beginColumn; jj_consume_token(AT); if (line == -1) {line=token.beginLine; column=token.beginColumn;} jj_consume_token(INTERFACE); name = Name(); members = AnnotationTypeBody(); AnnotationDeclaration tmp = new AnnotationDeclaration(line, column, token.endLine, token.endColumn, modifier.modifiers, modifier.annotations, null, members); tmp.setNameExpr(name); {if (true) return tmp;} throw new Error("Missing return statement in function"); }
@Override public Node visit(AnnotationDeclaration _n, Object _arg) { JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg); List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg); List<BodyDeclaration> members = visit(_n.getMembers(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); AnnotationDeclaration r = new AnnotationDeclaration( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), _n.getModifiers(), annotations, _n.getName(), members ); r.setComment(comment); return r; }