@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; }
public void setExpr(final Expression expr) { this.expr = expr; setAsParentNodeOf(this.expr); } }
@Override public void visit(final SynchronizedStmt n, final A arg) { visitComment(n.getComment(), arg); n.getExpr().accept(this, arg); n.getBlock().accept(this, arg); }
final public SynchronizedStmt SynchronizedStatement() throws ParseException { Expression expr; BlockStmt block; int line; int column; jj_consume_token(SYNCHRONIZED); line=token.beginLine; column=token.beginColumn; jj_consume_token(LPAREN); expr = Expression(); jj_consume_token(RPAREN); block = Block(); {if (true) return new SynchronizedStmt(line, column, token.endLine, token.endColumn,expr, block);} throw new Error("Missing return statement in function"); }
@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); }
final public SynchronizedStmt SynchronizedStatement() throws ParseException { Expression expr; BlockStmt block; int line; int column; jj_consume_token(SYNCHRONIZED); line=token.beginLine; column=token.beginColumn; jj_consume_token(LPAREN); expr = Expression(); jj_consume_token(RPAREN); block = Block(); SynchronizedStmt tmp = new SynchronizedStmt(line, column, token.endLine, token.endColumn,expr, block); {if (true) return tmp;} throw new Error("Missing return statement in function"); }
public void setBlock(final BlockStmt block) { this.block = block; setAsParentNodeOf(this.block); }