@Override public Node visit(ForeachStmt _n, Object _arg) { VariableDeclarationExpr var = cloneNodes(_n.getVariable(), _arg); Expression iterable = cloneNodes(_n.getIterable(), _arg); Statement body = cloneNodes(_n.getBody(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); ForeachStmt r = new ForeachStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), var, iterable, body ); r.setComment(comment); return r; }