org.apache.uima.annotator.regex
Interface Position

All Known Implementing Classes:
Position_impl

public interface Position


Field Summary
static int END_LOCATION
           
static int START_LOCATION
           
 
Method Summary
 int getMatchGroup()
          Get the match group number of this position.
 int getMatchPosition(java.util.regex.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.
 

Field Detail

START_LOCATION

static final int START_LOCATION
See Also:
Constant Field Values

END_LOCATION

static final int END_LOCATION
See Also:
Constant Field Values
Method Detail

getMatchGroup

int getMatchGroup()
Get the match group number of this position.

Returns:
returns the match group number.

getMatchPosition

int getMatchPosition(java.util.regex.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.

Parameters:
aMatcher - 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)


Copyright © 2011. All Rights Reserved.