|
|||||||||
Home >> All >> org >> acmsl >> regexpplugin >> [ gnuregexp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
org.acmsl.regexpplugin.gnuregexp
Class MatchResultGNUAdapter

java.lang.Objectorg.acmsl.regexpplugin.gnuregexp.MatchResultGNUAdapter
- All Implemented Interfaces:
- org.acmsl.regexpplugin.MatchResult
- public class MatchResultGNUAdapter
- extends java.lang.Object
- implements org.acmsl.regexpplugin.MatchResult
- extends java.lang.Object
Represents the result of match in a regexp parsing process using GNU Regexp 1.1.4 package.
- Version:
- $Revision: 1.4 $
Field Summary | |
private gnu.regexp.REMatch |
m__Adaptee
Adapted object. |
private int |
m__iGroups
Group count. |
static Version |
VERSION
Concrete version object updated everytime it's checked-in in a CVS repository. |
Constructor Summary | |
MatchResultGNUAdapter(gnu.regexp.REMatch adaptee,
int groups)
Constructs a MatchResultGNUAdapter from given GNU Regexp 1.1.4 REMatch instance. |
Method Summary | |
protected gnu.regexp.REMatch |
getAdaptee()
Retrieves the adaptee. |
static Version |
getClassVersion()
Retrieves the current version of this class. |
Version |
getVersion()
Retrieves the current version of this object. |
java.lang.String |
group(int group)
Taken from JDK1.4 javadoc: Returns the string matching the given subexpression. |
int |
groups()
Taken from GNU Regexp 1.4 javadoc: Returns the maximum number of subexpressions in this regular expression. |
protected void |
setAdaptee(gnu.regexp.REMatch adaptee)
Sets the adaptee. |
protected void |
setGroups(int groups)
Sets the group count. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
m__Adaptee
private gnu.regexp.REMatch m__Adaptee
- Adapted object.
m__iGroups
private int m__iGroups
- Group count.
VERSION
public static final Version VERSION
- Concrete version object updated everytime it's checked-in in a CVS
repository.
Constructor Detail |
MatchResultGNUAdapter
public MatchResultGNUAdapter(gnu.regexp.REMatch adaptee, int groups)
- Constructs a MatchResultGNUAdapter from given GNU Regexp 1.1.4
REMatch instance.
Method Detail |
setAdaptee
protected void setAdaptee(gnu.regexp.REMatch adaptee)
- Sets the adaptee.
getAdaptee
protected gnu.regexp.REMatch getAdaptee()
- Retrieves the adaptee.
group
public java.lang.String group(int group)
- Taken from JDK1.4 javadoc:
Returns the string matching the given subexpression. The
subexpressions are indexed starting with one, not zero.
That is, the subexpression identified by the first set of
parentheses in a regular expression could be retrieved from an
REMatch by calling match.toString(1).
- Specified by:
group
in interfaceorg.acmsl.regexpplugin.MatchResult
groups
public int groups()
- Taken from GNU Regexp 1.4 javadoc:
Returns the maximum number of subexpressions in this regular
expression.
- Specified by:
groups
in interfaceorg.acmsl.regexpplugin.MatchResult
setGroups
protected void setGroups(int groups)
- Sets the group count.
getVersion
public Version getVersion()
- Retrieves the current version of this object.
getClassVersion
public static Version getClassVersion()
- Retrieves the current version of this class.
|
|||||||||
Home >> All >> org >> acmsl >> regexpplugin >> [ gnuregexp overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |