Lines Matching refs:pattern
26 * Holds the pattern, that is, the compiled regular expression.
28 private Pattern pattern;
31 * Holds the handle for the native version of the pattern.
79 * Creates a matcher for a given combination of pattern and input. Both
82 * @param pattern
83 * the pattern to use.
87 Matcher(Pattern pattern, CharSequence input) {
88 usePattern(pattern);
216 * Sets a new pattern for the {@code Matcher}. Results of a previous find
220 * @param pattern
225 public Matcher usePattern(Pattern pattern) {
226 if (pattern == null) {
230 this.pattern = pattern;
236 address = openImpl(pattern.address);
288 * Replaces the first occurrence of this matcher's pattern in the input with
305 * Replaces all occurrences of this matcher's pattern in the input with a
326 public Pattern pattern() {
327 return pattern;
332 * Explicit capturing groups in the pattern are numbered left to right in order
334 * The special group 0 represents the entire match (as if the entire pattern is surrounded
431 * representing the whole pattern.
447 * representing the whole pattern.