public interface Position
Modifier and Type | Field and Description |
---|---|
static int |
END_LOCATION |
static int |
START_LOCATION |
Modifier and Type | Method and Description |
---|---|
int |
getMatchGroup()
Get the match group number of this position.
|
int |
getMatchPosition(Matcher aMatcher)
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.
|
static final int START_LOCATION
static final int END_LOCATION
int getMatchGroup()
int getMatchPosition(Matcher aMatcher)
aMatcher
- The matcher that matched the subsequence.Matcher.start(int)
,
Matcher.end(int)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.