public class Match extends Object implements Cloneable
RegularExpression.matches(char[], int, int, Match), 
RegularExpression.matches(char[], Match), 
RegularExpression.matches(java.text.CharacterIterator, Match), 
RegularExpression.matches(java.lang.String, int, int, Match), 
RegularExpression.matches(java.lang.String, Match)| Constructor and Description | 
|---|
Match()
Creates an instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
clone()  | 
int | 
getBeginning(int index)
Return a start position in the target text matched to specified regular expression group. 
 | 
String | 
getCapturedText(int index)
Return an substring of the target text matched to specified regular expression group. 
 | 
int | 
getEnd(int index)
Return an end position in the target text matched to specified regular expression group. 
 | 
int | 
getNumberOfGroups()
Return the number of regular expression groups. 
 | 
protected void | 
setBeginning(int index,
            int v)  | 
protected void | 
setEnd(int index,
      int v)  | 
protected void | 
setNumberOfGroups(int n)  | 
protected void | 
setSource(char[] chars)  | 
protected void | 
setSource(CharacterIterator ci)  | 
protected void | 
setSource(String str)  | 
protected void setNumberOfGroups(int n)
protected void setSource(CharacterIterator ci)
protected void setSource(String str)
protected void setSource(char[] chars)
protected void setBeginning(int index,
                            int v)
protected void setEnd(int index,
                      int v)
public int getNumberOfGroups()
public int getBeginning(int index)
index - Less than getNumberOfGroups().public int getEnd(int index)
index - Less than getNumberOfGroups().public String getCapturedText(int index)
index - Less than getNumberOfGroups().