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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.acmsl.regexpplugin.jdk14regexp.MatchResultJDKAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.MatchResult

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

Represents the result of match in a regexp parsing process using JDK1.4 regexp package.

Version:
$Revision: 1.5 $

Field Summary
private  java.util.regex.Matcher m__Adaptee
          Adapted object.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
MatchResultJDKAdapter(java.util.regex.Matcher matcher)
          Constructs a MatchResultJDKAdapter from given JDK1.4 Regexp-specific instance.
 
Method Summary
 java.util.regex.Matcher 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 JDK1.4 javadoc: Returns the input subsequence captured by the given group during the previous match operation..
 int groups()
          Taken from JDK 1.4 javadoc: Returns the number of capturing groups in this matcher's pattern..
protected  void setAdaptee(java.util.regex.Matcher matcher)
          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 java.util.regex.Matcher 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

MatchResultJDKAdapter

public MatchResultJDKAdapter(java.util.regex.Matcher matcher)
Constructs a MatchResultJDKAdapter from given JDK1.4 Regexp-specific instance.

Method Detail

setAdaptee

protected void setAdaptee(java.util.regex.Matcher matcher)
Sets the instance to adapt.


getAdaptee

public java.util.regex.Matcher getAdaptee()
Retrieves the adapted instance.


group

public java.lang.String group(int group)
Taken from JDK1.4 javadoc: Returns the input subsequence captured by the given group during the previous match operation..

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

groups

public int groups()
Taken from JDK 1.4 javadoc: Returns the number of capturing groups in this matcher's pattern..

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.