@Override public void visit(final DoStmt n, final A arg) { visitComment(n.getComment(), arg); n.getBody().accept(this, arg); n.getCondition().accept(this, arg); }
@Override public void visit(final DoStmt n, final Object arg) { printJavaComment(n.getComment(), arg); printer.print("do "); n.getBody().accept(this, arg); printer.print(" while ("); n.getCondition().accept(this, arg); printer.print(");"); }
@Override public Node visit(DoStmt _n, Object _arg) { Statement body = cloneNodes(_n.getBody(), _arg); Expression condition = cloneNodes(_n.getCondition(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); DoStmt r = new DoStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), body, condition ); r.setComment(comment); return r; }