com.google.code.regexp
Class GroupInfo

java.lang.Object
  extended by com.google.code.regexp.GroupInfo

public class GroupInfo
extends Object

Contains the position and group index of capture groups from a named pattern


Constructor Summary
GroupInfo(int groupIndex, int pos)
          Constructs a GroupInfo with a group index and string position
 
Method Summary
 int groupIndex()
          Gets the group index of the named capture group
 int pos()
          Gets the string position of the group within a named pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupInfo

public GroupInfo(int groupIndex,
                 int pos)
Constructs a GroupInfo with a group index and string position

Parameters:
groupIndex - the group index
pos - the position
Method Detail

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


Copyright © 2013. All Rights Reserved.