Package com.google.code.regexp
Class GroupInfo
java.lang.Object
com.google.code.regexp.GroupInfo
- All Implemented Interfaces:
Serializable
Contains the position and group index of capture groups
from a named pattern
- See Also:
-
Constructor Summary
ConstructorDescriptionGroupInfo
(int groupIndex, int pos) Constructs aGroupInfo
with a group index and string position -
Method Summary
-
Constructor Details
-
GroupInfo
public GroupInfo(int groupIndex, int pos) Constructs aGroupInfo
with a group index and string position- Parameters:
groupIndex
- the group indexpos
- the position
-
-
Method Details
-
pos
public int pos()Gets the string position of the group within a named pattern- Returns:
- the position
-
groupIndex
public int groupIndex()Gets the group index of the named capture group- Returns:
- the group index
-
equals
-
hashCode
public int hashCode()
-