Package org.radeox.regex
Class JdkMatchResult
- java.lang.Object
-
- org.radeox.regex.MatchResult
-
- org.radeox.regex.JdkMatchResult
-
public class JdkMatchResult extends MatchResult
-
-
Constructor Summary
Constructors Constructor Description JdkMatchResult(Matcher matcher)JdkMatchResult(Matcher matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbeginOffset(int i)The offset of the beginning of the match for the group with the index iintendOffset(int i)The offset of the end of the match for the group with the index iStringgroup(int i)Return the content of group with the index iintgroups()Returns the number of groups (...) found-
Methods inherited from class org.radeox.regex.MatchResult
create
-
-
-
-
Method Detail
-
groups
public int groups()
Description copied from class:MatchResultReturns the number of groups (...) found- Specified by:
groupsin classMatchResult- Returns:
- Number of found groups
-
group
public String group(int i)
Description copied from class:MatchResultReturn the content of group with the index i- Specified by:
groupin classMatchResult- 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:MatchResultThe offset of the beginning of the match for the group with the index i- Specified by:
beginOffsetin classMatchResult- Parameters:
i- index for the group- Returns:
- Offset of the group
-
endOffset
public int endOffset(int i)
Description copied from class:MatchResultThe offset of the end of the match for the group with the index i- Specified by:
endOffsetin classMatchResult- Parameters:
i- index for the group- Returns:
- Offset of the group
-
-