public class

Match

extends Object
implements Cloneable
java.lang.Object
   ↳ org.apache.xerces.impl.xpath.regex.Match

Summary

Public Constructors
Match()
Creates an instance.
Public Methods
synchronized Object clone()
int getBeginning(int index)
Return a start position in the target text matched to specified regular expression group.
String 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 getNumberOfGroups()
Return the number of regular expression groups.
Protected Methods
void setBeginning(int index, int v)
void setEnd(int index, int v)
void setNumberOfGroups(int n)
void setSource(CharacterIterator ci)
void setSource(String str)
void setSource(char[] chars)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Match ()

Creates an instance.

Public Methods

public synchronized Object clone ()

public int getBeginning (int index)

Return a start position in the target text matched to specified regular expression group.

Parameters
index Less than getNumberOfGroups().

public String getCapturedText (int index)

Return an substring of the target text matched to specified regular expression group.

Parameters
index Less than getNumberOfGroups().

public int getEnd (int index)

Return an end position in the target text matched to specified regular expression group.

Parameters
index Less than getNumberOfGroups().

public int getNumberOfGroups ()

Return the number of regular expression groups. This method returns 1 when the regular expression has no capturing-parenthesis.

Protected Methods

protected void setBeginning (int index, int v)

protected void setEnd (int index, int v)

protected void setNumberOfGroups (int n)

protected void setSource (CharacterIterator ci)

protected void setSource (String str)

protected void setSource (char[] chars)