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

Method namedGroups

java/com/google/re2j/Pattern.java:331–333  ·  view source on GitHub ↗

Return a map of the capturing groups in this matcher's pattern, where key is the name and value is the index of the group in the pattern.

()

Source from the content-addressed store, hash-verified

329 * is the index of the group in the pattern.
330 */
331 public Map<String, Integer> namedGroups() {
332 return Collections.unmodifiableMap(re2.namedGroups);
333 }
334
335 Object readResolve() {
336 // The deserialized version will be missing the RE2 instance, so we need to create a new,

Callers 1

Calls

no outgoing calls

Tested by 1