@Override public R visit(final CastExpr n, final A arg) { { R result = n.getType().accept(this, arg); if (result != null) { return result; } } { R result = n.getExpr().accept(this, arg); if (result != null) { return result; } } return null; }
@Override public Node visit(final CastExpr n, final A arg) { n.setType((Type) n.getType().accept(this, arg)); n.setExpr((Expression) n.getExpr().accept(this, arg)); return n; }
@Override public void visit(final CastExpr n, final A arg) { visitComment(n.getComment(), arg); n.getType().accept(this, arg); n.getExpr().accept(this, arg); }
public void visit(CastExpr n, Object arg) { printer.print("("); n.getType().accept(this, arg); printer.print(") "); n.getExpr().accept(this, arg); }
@Override public void visit(final CastExpr n, final Object arg) { printJavaComment(n.getComment(), arg); printer.print("("); n.getType().accept(this, arg); printer.print(") "); n.getExpr().accept(this, arg); }
@Override public Node visit(CastExpr _n, Object _arg) { Type type_ = cloneNodes(_n.getType(), _arg); Expression expr = cloneNodes(_n.getExpr(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); CastExpr r = new CastExpr( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), type_, expr ); r.setComment(comment); return r; }