Class GroupInfo

java.lang.Object
com.google.code.regexp.GroupInfo
All Implemented Interfaces:
Serializable

public class GroupInfo extends Object implements Serializable
Contains the position and group index of capture groups from a named pattern
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    GroupInfo(int groupIndex, int pos)
    Constructs a GroupInfo with a group index and string position
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Gets the group index of the named capture group
    int
     
    int
    pos()
    Gets the string position of the group within a named pattern

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object