protected JL5Call_c reconstruct(Receiver target, List arguments, List typeArgs) { if (target != this.target || !CollectionUtil.equals(arguments, this.arguments) || !CollectionUtil.equals(typeArgs, this.typeArguments)) { JL5Call_c n = (JL5Call_c) copy(); n.target = target; n.arguments = TypedList.copyAndCheck(arguments, Expr.class, true); n.typeArguments = TypedList.copyAndCheck(typeArgs, TypeNode.class, false); return n; } return this; }
/** Reconstruct the statement. */ protected For_c reconstruct(List inits, Expr cond, List iters, Stmt body) { if (!CollectionUtil.equals(inits, this.inits) || cond != this.cond || !CollectionUtil.equals(iters, this.iters) || body != this.body) { For_c n = (For_c) copy(); n.inits = TypedList.copyAndCheck(inits, ForInit.class, true); n.cond = cond; n.iters = TypedList.copyAndCheck(iters, ForUpdate.class, true); n.body = body; return n; } return this; }