Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acmsl.regexpplugin.jakartaregexp
Class MatchResultRegexpAdapter  view MatchResultRegexpAdapter download MatchResultRegexpAdapter.java

java.lang.Object
  extended byorg.acmsl.regexpplugin.jakartaregexp.MatchResultRegexpAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.MatchResult

public class MatchResultRegexpAdapter
extends java.lang.Object
implements org.acmsl.regexpplugin.MatchResult

Represents the result of match in a regexp parsing process using Jakarta Regexp package.

Version:
$Revision: 1.5 $

Field Summary
private  org.apache.regexp.RE m__Adaptee
          Adapted object.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
MatchResultRegexpAdapter(org.apache.regexp.RE matchResult)
          Constructs a REMatchResultRegexpAdapter from given Jakarta Regexp-specific instance.
 
Method Summary
 org.apache.regexp.RE getAdaptee()
          Retrieves the adapted instance.
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 Jakarta Regexp javadoc: Gets the contents of a parenthesized subexpression after a successful match.
 int groups()
          Taken from Jakarta Regexp 1.2 javadoc: Returns the number of parenthesized subexpressions available after a successful match..
protected  void setAdaptee(org.apache.regexp.RE matchResult)
          Sets the instance to adapt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m__Adaptee

private org.apache.regexp.RE m__Adaptee
Adapted object.


VERSION

public static final Version VERSION
Concrete version object updated everytime it's checked-in in a CVS repository.

Constructor Detail

MatchResultRegexpAdapter

public MatchResultRegexpAdapter(org.apache.regexp.RE matchResult)
Constructs a REMatchResultRegexpAdapter from given Jakarta Regexp-specific instance.

Method Detail

setAdaptee

protected void setAdaptee(org.apache.regexp.RE matchResult)
Sets the instance to adapt.


getAdaptee

public org.apache.regexp.RE getAdaptee()
Retrieves the adapted instance.


group

public java.lang.String group(int group)
Taken from Jakarta Regexp javadoc: Gets the contents of a parenthesized subexpression after a successful match.

Specified by:
group in interface org.acmsl.regexpplugin.MatchResult

groups

public int groups()
Taken from Jakarta Regexp 1.2 javadoc: Returns the number of parenthesized subexpressions available after a successful match..

Specified by:
groups in interface org.acmsl.regexpplugin.MatchResult

getVersion

public Version getVersion()
Retrieves the current version of this object.


getClassVersion

public static Version getClassVersion()
Retrieves the current version of this class.