Lines Matching defs:replacer

1192      * pattern with the result of applying the given replacer function to the
1199 * is replaced in the result by the applying the replacer function that
1221 * <p> The replacer function should not modify this matcher's state during
1226 * <p> The state of each match result passed to the replacer function is
1227 * guaranteed to be constant only for the duration of the replacer function
1228 * call and only if the replacer function does not modify this matcher's
1232 * This implementation applies the replacer function to this matcher, which
1235 * @param replacer
1239 * with the result of applying the replacer function to that
1242 * @throws NullPointerException if the replacer function is null
1244 * best-effort basis, that the replacer function modified this
1248 public String replaceAll(Function<MatchResult, String> replacer) {
1249 Objects.requireNonNull(replacer);
1256 String replacement = replacer.apply(this);
1414 * pattern with the result of applying the given replacer function to the
1421 * is replaced in the result by the applying the replacer function that
1443 * <p> The replacer function should not modify this matcher's state during
1448 * <p> The state of the match result passed to the replacer function is
1449 * guaranteed to be constant only for the duration of the replacer function
1450 * call and only if the replacer function does not modify this matcher's
1454 * This implementation applies the replacer function to this matcher, which
1457 * @param replacer
1461 * subsequence with the result of applying the replacer function to
1464 * @throws NullPointerException if the replacer function is null
1466 * best-effort basis, that the replacer function modified this
1470 public String replaceFirst(Function<MatchResult, String> replacer) {
1471 Objects.requireNonNull(replacer);
1477 String replacement = replacer.apply(this);