APTCONVERT 1.1

fr.pixware.util
Class REMatch

java.lang.Object
  extended byfr.pixware.util.REMatch

public final class REMatch
extends java.lang.Object

Text span returned by RE.getMatch(java.lang.String, int).


Constructor Summary
REMatch(int startIndex, int endIndex, java.lang.String text)
          Constructor.
 
Method Summary
 int getEndIndex()
          Returns the index of the end of the span.
 int getStartIndex()
          Returns the index of the start of the span.
 java.lang.String getText()
          Returns the text contained in the span.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

REMatch

public REMatch(int startIndex,
               int endIndex,
               java.lang.String text)
Constructor.

Parameters:
startIndex - the index of the start of the span
endIndex - the index of the end of the span
text - the text contained in the span
Method Detail

getStartIndex

public int getStartIndex()
Returns the index of the start of the span.

Returns:
the index of the start of the span

getEndIndex

public int getEndIndex()
Returns the index of the end of the span.

Returns:
the index of the end of the span

getText

public java.lang.String getText()
Returns the text contained in the span.

Returns:
the text contained in the span

APTCONVERT 1.1