org.apache.uima.annotator.regex.impl
Class Position_impl
java.lang.Object
org.apache.uima.annotator.regex.impl.Position_impl
- All Implemented Interfaces:
- Position
public class Position_impl
- extends Object
- implements Position
Method Summary |
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()
|
Position_impl
public Position_impl(int matchGroup,
int location)
- Parameters:
matchGroup
- location
-
getMatchGroup
public int getMatchGroup()
- Description copied from interface:
Position
- Get the match group number of this position.
- Specified by:
getMatchGroup
in interface Position
- Returns:
- returns the match group number.
getMatchPosition
public int getMatchPosition(Matcher matcher)
- Description copied from interface:
Position
- 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.
- Specified by:
getMatchPosition
in interface Position
- Parameters:
matcher
- The matcher that matched the subsequence.
- Returns:
- The index of the first or last character of this position's match group.
- See Also:
Matcher.start(int)
,
Matcher.end(int)
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2011 The Apache Software Foundation. All Rights Reserved.