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()
Position
getMatchGroup
in interface Position
public int getMatchPosition(Matcher matcher)
Position
getMatchPosition
in interface Position
matcher
- The matcher that matched the subsequence.Matcher.start(int)
,
Matcher.end(int)
Copyright © 2016. All rights reserved.