@Override public void visit(final AnnotationMemberDeclaration n, final A arg) { visitComment(n.getComment(), arg); if (n.getJavaDoc() != null) { n.getJavaDoc().accept(this, arg); } if (n.getAnnotations() != null) { for (final AnnotationExpr a : n.getAnnotations()) { a.accept(this, arg); } } n.getType().accept(this, arg); if (n.getDefaultValue() != null) { n.getDefaultValue().accept(this, arg); } }
@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; }
@Override public void visit(final AnnotationMemberDeclaration n, final Object arg) { printJavaComment(n.getComment(), arg); printJavadoc(n.getJavaDoc(), arg); printMemberAnnotations(n.getAnnotations(), arg); printModifiers(n.getModifiers()); n.getType().accept(this, arg); printer.print(" "); printer.print(n.getName()); printer.print("()"); if (n.getDefaultValue() != null) { printer.print(" default "); n.getDefaultValue().accept(this, arg); } printer.print(";"); }