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

Quick Search    Search Deep

org.acmsl.regexpplugin.jdk14regexp
Class MatcherJDKAdapter  view MatcherJDKAdapter download MatcherJDKAdapter.java

java.lang.Object
  extended byorg.acmsl.regexpplugin.jdk14regexp.MatcherJDKAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.Matcher

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

JDK1.4-specific regexp matcher adapter. This class makes possible the use of JDK1.4 matchers inside this API.

Version:
$Revision: 1.4 $

Field Summary
private  java.util.regex.Matcher m__Matcher
          Concrete engine implementation.
static Version VERSION
           
 
Constructor Summary
MatcherJDKAdapter()
          Constructs a MatcherJDKAdapter.
 
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  java.util.regex.Matcher 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 setDelegatedInstance(java.util.regex.Matcher matcher)
          Sets the matcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m__Matcher

private java.util.regex.Matcher m__Matcher
Concrete engine implementation.


VERSION

public static final Version VERSION
Constructor Detail

MatcherJDKAdapter

public MatcherJDKAdapter()
Constructs a MatcherJDKAdapter.

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

setDelegatedInstance

protected void setDelegatedInstance(java.util.regex.Matcher matcher)
Sets the matcher.


getDelegatedInstance

protected java.util.regex.Matcher getDelegatedInstance()
Retrieves an instance of Perl5Matcher class.


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.