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

Quick Search    Search Deep

org.acmsl.regexpplugin.jakartaoro
Class Perl5MatcherOROAdapter  view Perl5MatcherOROAdapter download Perl5MatcherOROAdapter.java

java.lang.Object
  extended byorg.acmsl.regexpplugin.jakartaoro.Perl5MatcherOROAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.Matcher

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

Jakarta ORO-specific regexp compiler adapter. This class makes possible the use of ORO compilers inside this API. A delegation is used because Perl5Compiler is a final class.

Version:
$Revision: 1.6 $

Field Summary
private  org.apache.oro.text.regex.Perl5Matcher m__Instance
          Delegated instance.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
Perl5MatcherOROAdapter()
          Constructs a Perl5MatcherOROAdapter for given object.
 
Method Summary
 boolean contains(java.lang.String text, org.acmsl.regexpplugin.Pattern pattern)
          Checks if given text contains specified pattern.
static Version getClassVersion()
          Retrieves the current version of this class.
protected  org.apache.oro.text.regex.Perl5Matcher getDelegatedInstance()
          Retrieves an instance of Perl5Matcher 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.oro.text.regex.Perl5Matcher adaptee)
          Sets the adaptee.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m__Instance

private org.apache.oro.text.regex.Perl5Matcher m__Instance
Delegated instance.


VERSION

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

Constructor Detail

Perl5MatcherOROAdapter

public Perl5MatcherOROAdapter()
Constructs a Perl5MatcherOROAdapter for given object.

Method Detail

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

getDelegatedInstance

protected org.apache.oro.text.regex.Perl5Matcher getDelegatedInstance()
Retrieves an instance of Perl5Matcher class.


setAdaptee

protected void setAdaptee(org.apache.oro.text.regex.Perl5Matcher adaptee)
Sets the adaptee.


getVersion

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


getClassVersion

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