END_LOCATION, START_LOCATION| Constructor and Description |
|---|
Position_impl(int matchGroup,
int location) |
| Modifier and Type | Method and Description |
|---|---|
int |
getMatchGroup()
Get the match group number of this position.
|
int |
getMatchPosition(Matcher matcher)
Returns the index of the first or last character of the subsequence this position's
match group covers, dependent on whether this position denotes the begin or end of
the match group.
|
String |
toString() |
public Position_impl(int matchGroup,
int location)
matchGroup - location - public int getMatchGroup()
PositiongetMatchGroup in interface Positionpublic int getMatchPosition(Matcher matcher)
PositiongetMatchPosition in interface Positionmatcher - The matcher that matched the subsequence.Matcher.start(int),
Matcher.end(int)Copyright © 2006–2025 The Apache Software Foundation. All rights reserved.