Methods Summary |
---|
public int | getGroupCnt()Convenience method delegates to the internal MatchResult's groups()
method.
if (this.result == null)
{
return 0;
}
return this.result.groups();
|
public java.lang.String | getGroupsAsString()For debugging purposes - returns a string shows each match group by
number.
StringBuffer b = new StringBuffer();
for (int i = 1; i <= this.result.groups(); i++)
{
b.append(i).append(") ").append(this.result.group(i))
.append(System.getProperty("line.separator"));
}
return b.toString();
|
public java.lang.String | group(int matchnum)Convenience method delegates to the internal MatchResult's group()
method.
if (this.result == null)
{
return null;
}
return this.result.group(matchnum);
|
public boolean | matches(java.lang.String s)Convenience method delegates to the internal MatchResult's matches()
method.
this.result = null;
if (_matcher_.matches(s.trim(), this.pattern))
{
this.result = _matcher_.getMatch();
}
return null != this.result;
|