MCPcopy Create free account
hub / github.com/google/re2j / Matcher

Method Matcher

java/com/google/re2j/Matcher.java:74–84  ·  view source on GitHub ↗
(Pattern pattern)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

numberOfInstructionsMethod · 0.95
resetMethod · 0.95
re2Method · 0.80

Tested by

no test coverage detected