public void visit(SynchronizedStmt n, Object arg) { printer.print("synchronized ("); n.getExpr().accept(this, arg); printer.print(") "); n.getBlock().accept(this, arg); }
@Override public void visit(final SynchronizedStmt n, final A arg) { visitComment(n.getComment(), arg); n.getExpr().accept(this, arg); n.getBlock().accept(this, arg); }
@Override public Node visit(final SynchronizedStmt n, final A arg) { n.setExpr((Expression) n.getExpr().accept(this, arg)); n.setBlock((BlockStmt) n.getBlock().accept(this, arg)); return n; }
@Override public void visit(final SynchronizedStmt n, final Object arg) { printJavaComment(n.getComment(), arg); printer.print("synchronized ("); n.getExpr().accept(this, arg); printer.print(") "); n.getBlock().accept(this, arg); }
@Override public Node visit(SynchronizedStmt _n, Object _arg) { Expression expr = cloneNodes(_n.getExpr(), _arg); BlockStmt block = cloneNodes(_n.getBlock(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); SynchronizedStmt r = new SynchronizedStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), expr, block ); r.setComment(comment); return r; }