Class Match
java.lang.Object
org.apache.jena.ext.xerces.impl.xpath.regex.Match
- All Implemented Interfaces:
Cloneable
An instance of this class has ranges captured in matching.
@xerces.internal
- Version:
- $Id: Match.java 446721 2006-09-15 20:35:34Z mrglavas $
- Author:
- TAMURA Kent <[email protected]>
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
int
getBeginning
(int index) Return a start position in the target text matched to specified regular expression group.getCapturedText
(int index) Return an substring of the target text matched to specified regular expression group.int
getEnd
(int index) Return an end position in the target text matched to specified regular expression group.int
Return the number of regular expression groups.
-
Constructor Details
-
Match
public Match()Creates an instance.
-
-
Method Details
-
clone
-
getNumberOfGroups
public int getNumberOfGroups()Return the number of regular expression groups. This method returns 1 when the regular expression has no capturing-parenthesis. -
getBeginning
public int getBeginning(int index) Return a start position in the target text matched to specified regular expression group.- Parameters:
index
- Less thangetNumberOfGroups()
.
-
getEnd
public int getEnd(int index) Return an end position in the target text matched to specified regular expression group.- Parameters:
index
- Less thangetNumberOfGroups()
.
-
getCapturedText
Return an substring of the target text matched to specified regular expression group.- Parameters:
index
- Less thangetNumberOfGroups()
.
-