org.radeox.regex
Class JdkMatchResult

java.lang.Object
  extended byorg.radeox.regex.MatchResult
      extended byorg.radeox.regex.JdkMatchResult

public class JdkMatchResult
extends MatchResult


Constructor Summary
JdkMatchResult(java.util.regex.Matcher matcher)
           
JdkMatchResult(Matcher matcher)
           
 
Method Summary
 int beginOffset(int i)
          The offset of the beginning of the match for the group with the index i
 int endOffset(int i)
          The offset of the end of the match for the group with the index i
 java.lang.String group(int i)
          Return the content of group with the index i
 int groups()
          Returns the number of groups (...) found
 
Methods inherited from class org.radeox.regex.MatchResult
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdkMatchResult

public JdkMatchResult(java.util.regex.Matcher matcher)

JdkMatchResult

public JdkMatchResult(Matcher matcher)
Method Detail

groups

public int groups()
Description copied from class: MatchResult
Returns the number of groups (...) found

Specified by:
groups in class MatchResult
Returns:
Number of found groups

group

public java.lang.String group(int i)
Description copied from class: MatchResult
Return the content of group with the index i

Specified by:
group in class MatchResult
Parameters:
i - index for the group
Returns:
Content of the group with the index i

beginOffset

public int beginOffset(int i)
Description copied from class: MatchResult
The offset of the beginning of the match for the group with the index i

Specified by:
beginOffset in class MatchResult
Parameters:
i - index for the group
Returns:
Offset of the group

endOffset

public int endOffset(int i)
Description copied from class: MatchResult
The offset of the end of the match for the group with the index i

Specified by:
endOffset in class MatchResult
Parameters:
i - index for the group
Returns:
Offset of the group


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.