@Override public Node visit(IfStmt _n, Object _arg) { Expression condition = cloneNodes(_n.getCondition(), _arg); Statement thenStmt = cloneNodes(_n.getThenStmt(), _arg); Statement elseStmt = cloneNodes(_n.getElseStmt(), _arg); Comment comment = cloneNodes(_n.getComment(), _arg); IfStmt r = new IfStmt( _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(), condition, thenStmt, elseStmt ); r.setComment(comment); return r; }