@Override public Boolean visit(final DoStmt n1, final Node arg) { final DoStmt n2 = (DoStmt) arg; if (!nodeEquals(n1.getBody(), n2.getBody())) { return Boolean.FALSE; } if (!nodeEquals(n1.getCondition(), n2.getCondition())) { return Boolean.FALSE; } return Boolean.TRUE; }
@Override public R visit(final DoStmt n, final A arg) { { R result = n.getBody().accept(this, arg); if (result != null) { return result; } } { R result = n.getCondition().accept(this, arg); if (result != null) { return result; } } return null; }
@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 Node visit(final DoStmt n, final A arg) { n.setBody((Statement) n.getBody().accept(this, arg)); n.setCondition((Expression) n.getCondition().accept(this, arg)); return n; }
public void visit(DoStmt n, Object arg) { printer.print("do "); n.getBody().accept(this, arg); printer.print(" while ("); n.getCondition().accept(this, arg); printer.print(");"); }
@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; }