public abstract class MatchResult extends Object
| Constructor and Description |
|---|
MatchResult() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
beginOffset(int i)
The offset of the beginning of the match for the group with the index i
|
static MatchResult |
create(Matcher matcher)
Create a new MatchResult depending on the used implementation
|
abstract int |
endOffset(int i)
The offset of the end of the match for the group with the index i
|
abstract String |
group(int i)
Return the content of group with the index i
|
abstract int |
groups()
Returns the number of groups (...) found
|
public static MatchResult create(Matcher matcher)
matcher - Matcher object of the implementationpublic abstract int groups()
public abstract String group(int i)
i - index for the grouppublic abstract int beginOffset(int i)
i - index for the grouppublic abstract int endOffset(int i)
i - index for the groupCopyright © 2003–2021 Sakai Project. All rights reserved.