|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MatchResult
The result of a match operation.
This interface contains query methods used to determine the results of a match against a regular expression. The match boundaries, groups and group boundaries can be seen but not modified through a MatchResult.
Method Summary | |
---|---|
int |
end(String groupName)
Returns the offset after the last character of the subsequence captured by the given group during this match. |
String |
group(String groupName)
Returns the input subsequence captured by the given group during the previous match operation. |
Map<String,String> |
namedGroups()
Returns the named capture groups |
List<String> |
orderedGroups()
Returns the named capture groups in order |
int |
start(String groupName)
Returns the start index of the subsequence captured by the given group during this match. |
Methods inherited from interface java.util.regex.MatchResult |
---|
end, end, group, group, groupCount, start, start |
Method Detail |
---|
List<String> orderedGroups()
Map<String,String> namedGroups()
String group(String groupName)
groupName
- name of capture group
int start(String groupName)
groupName
- name of capture group
int end(String groupName)
groupName
- name of capture group
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |