final public AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(Modifier modifier) throws ParseException { Type type; String name; Expression defaultVal = null; type = Type(); jj_consume_token(IDENTIFIER); name = token.image; jj_consume_token(LPAREN); jj_consume_token(RPAREN); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case _DEFAULT: defaultVal = DefaultValue(); break; default: jj_la1[135] = jj_gen; ; } jj_consume_token(SEMICOLON); int line = modifier.beginLine; int column = modifier.beginColumn; { if (line == -1) {line=type.getBeginLine(); column=type.getBeginColumn();} } AnnotationMemberDeclaration tmp = new AnnotationMemberDeclaration(line, column, token.endLine, token.endColumn, modifier.modifiers, modifier.annotations, type, name, defaultVal); {if (true) return tmp;} throw new Error("Missing return statement in function"); }
final public AnnotationMemberDeclaration AnnotationTypeMemberDeclaration(Modifier modifier) throws ParseException { Type type; String name; Expression defaultVal = null; type = Type(); jj_consume_token(IDENTIFIER); name = token.image; jj_consume_token(LPAREN); jj_consume_token(RPAREN); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case _DEFAULT: defaultVal = DefaultValue(); break; default: jj_la1[133] = jj_gen; ; } jj_consume_token(SEMICOLON); int line = modifier.beginLine; int column = modifier.beginColumn; { if (line == -1) {line=type.getBeginLine(); column=type.getBeginColumn();} } {if (true) return new AnnotationMemberDeclaration(line, column, token.endLine, token.endColumn, popJavadoc(), modifier.modifiers, modifier.annotations, type, name, defaultVal);} throw new Error("Missing return statement in function"); }
@Override public Node visit(AnnotationMemberDeclaration _n, Object _arg) { JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg); List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg); Type type_ = cloneNodes(_n.getType(), _arg); Expression defaultValue = cloneNodes(_n.getDefaultValue(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); AnnotationMemberDeclaration r = new AnnotationMemberDeclaration( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), _n.getModifiers(), annotations, type_, _n.getName(), defaultValue ); r.setComment(comment); return r; }