org.apache.uima.annotator.regex.impl
Class Position_impl

java.lang.Object
  extended by org.apache.uima.annotator.regex.impl.Position_impl
All Implemented Interfaces:
Position

public class Position_impl
extends java.lang.Object
implements Position


Field Summary
 
Fields inherited from interface org.apache.uima.annotator.regex.Position
END_LOCATION, START_LOCATION
 
Constructor Summary
Position_impl(int matchGroup, int location)
           
 
Method Summary
 int getMatchGroup()
          Get the match group number of this position.
 int getMatchPosition(java.util.regex.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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Position_impl

public Position_impl(int matchGroup,
                     int location)
Parameters:
matchGroup -
location -
Method Detail

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(java.util.regex.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.