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)
Modifier and Type | Field and Description |
---|---|
pack-priv int[] | |
pack-priv char[] | |
pack-priv CharacterIterator | |
pack-priv int[] | |
pack-priv int | |
pack-priv String |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public synchronized Object | |
public int | getBeginning(int
Less than index)getNumberOfGroups() .Return a start position in the target text matched to specified regular expression group. |
public String | getCapturedText(int
Less than index)getNumberOfGroups() .Return an substring of the target text matched to specified regular expression group. |
public int | getEnd(int
Less than index)getNumberOfGroups() .Return an end position in the target text matched to specified regular expression group. |
public int | |
protected void | |
protected void | |
protected void | |
protected void | |
protected void | |
protected void |
beginpos | back to summary |
---|---|
pack-priv int[] beginpos |
charSource | back to summary |
---|---|
pack-priv char[] charSource |
ciSource | back to summary |
---|---|
pack-priv CharacterIterator ciSource |
endpos | back to summary |
---|---|
pack-priv int[] endpos |
nofgroups | back to summary |
---|---|
pack-priv int nofgroups |
strSource | back to summary |
---|---|
pack-priv String strSource |
Match | back to summary |
---|---|
public Match() Creates an instance. |
clone | back to summary |
---|---|
public synchronized Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true , but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true , this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
|
getBeginning | back to summary |
---|---|
public int getBeginning(int index) Return a start position in the target text matched to specified regular expression group.
|
getCapturedText | back to summary |
---|---|
public String getCapturedText(int index) Return an substring of the target text matched to specified regular expression group.
|
getEnd | back to summary |
---|---|
public int getEnd(int index) Return an end position in the target text matched to specified regular expression group.
|
getNumberOfGroups | back to summary |
---|---|
public int getNumberOfGroups() Return the number of regular expression groups. This method returns 1 when the regular expression has no capturing-parenthesis. |
setBeginning | back to summary |
---|---|
protected void setBeginning(int index, int v) |
setEnd | back to summary |
---|---|
protected void setEnd(int index, int v) |
setNumberOfGroups | back to summary |
---|---|
protected void setNumberOfGroups(int n) |
setSource | back to summary |
---|---|
protected void setSource(CharacterIterator ci) |
setSource | back to summary |
---|---|
protected void setSource(String str) |
setSource | back to summary |
---|---|
protected void setSource(char[] chars) |