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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.acmsl.regexpplugin.jakartaregexp.MatcherRegexpAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.Matcher

public class MatcherRegexpAdapter
extends java.lang.Object
implements org.acmsl.regexpplugin.Matcher

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__RE
          Private RE reference.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
MatcherRegexpAdapter()
          Constructs an empty REMatcherRegexpAdapter.
 
Method Summary
 boolean contains(java.lang.String text, org.acmsl.regexpplugin.Pattern pattern)
          Checks if given text contains specified pattern.
 org.apache.regexp.RE getAdaptee()
          Retrieves the adapted instance.
static Version getClassVersion()
          Retrieves the current version of this class.
 org.acmsl.regexpplugin.MatchResult getMatch()
          Retrieves the last match found due to a previous call to contains method.
 Version getVersion()
          Retrieves the current version of this object.
protected  void setAdaptee(org.apache.regexp.RE adaptee)
          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__RE

private org.apache.regexp.RE m__RE
Private RE reference.


VERSION

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

Constructor Detail

MatcherRegexpAdapter

public MatcherRegexpAdapter()
Constructs an empty REMatcherRegexpAdapter.

Method Detail

setAdaptee

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


getAdaptee

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


contains

public boolean contains(java.lang.String text,
                        org.acmsl.regexpplugin.Pattern pattern)
Checks if given text contains specified pattern.

Specified by:
contains in interface org.acmsl.regexpplugin.Matcher

getMatch

public org.acmsl.regexpplugin.MatchResult getMatch()
Retrieves the last match found due to a previous call to contains method.

Specified by:
getMatch in interface org.acmsl.regexpplugin.Matcher

getVersion

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


getClassVersion

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