@Override public Node visit(ForStmt _n, Object _arg) { List<Expression> init = visit(_n.getInit(), _arg); Expression compare = cloneNodes(_n.getCompare(), _arg); List<Expression> update = visit(_n.getUpdate(), _arg); Statement body = cloneNodes(_n.getBody(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); ForStmt r = new ForStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), init, compare, update, body ); r.setComment(comment); return r; }