MatchResult

public interface MatchResult
Known Indirect Subclasses

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.

See Also

Public Method Summary

abstract int
end(int group)
Returns the offset after the last character of the subsequence captured by the given group during this match.
abstract int
end()
Returns the offset after the last character matched.
abstract String
group(int group)
Returns the input subsequence captured by the given group during the previous match operation.
abstract String
group()
Returns the input subsequence matched by the previous match.
abstract int
groupCount()
Returns the number of capturing groups in this match result's pattern.
abstract int
start()
Returns the start index of the match.
abstract int
start(int group)
Returns the start index of the subsequence captured by the given group during this match.

Public Methods

public abstract int end (int group)