(Pattern pattern)
| 72 | private int anchorFlag; |
| 73 | |
| 74 | private Matcher(Pattern pattern) { |
| 75 | if (pattern == null) { |
| 76 | throw new NullPointerException("pattern is null"); |
| 77 | } |
| 78 | this.pattern = pattern; |
| 79 | RE2 re2 = pattern.re2(); |
| 80 | groupCount = re2.numberOfCapturingGroups(); |
| 81 | groups = new int[2 + 2 * groupCount]; |
| 82 | namedGroups = re2.namedGroups; |
| 83 | numberOfInstructions = re2.numberOfInstructions(); |
| 84 | } |
| 85 | |
| 86 | /** Creates a new {@code Matcher} with the given pattern and input. */ |
| 87 | Matcher(Pattern pattern, CharSequence input) { |
nothing calls this directly
no test coverage detected