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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.acmsl.regexpplugin.jakartaregexp.CompilerRegexpAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.Compiler

public class CompilerRegexpAdapter
extends java.lang.Object
implements org.acmsl.regexpplugin.Compiler

Jakarta Regexp-specific regexp compiler adapter. This class makes possible the use of Jakarta Regexp compilers inside this API. Delegation is used to be able to write compile(String) method with different signature as Jakarta Regexp's.

Version:
$Revision: 1.9 $

Field Summary
private  boolean m__bCaseSensitive
          Case sensitiveness.
private  boolean m__bMultiline
          Multiline parsing.
private  org.apache.regexp.RECompiler m__Instance
          Delegated instance.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
CompilerRegexpAdapter()
           
 
Method Summary
 org.acmsl.regexpplugin.Pattern compile(java.lang.String regexp)
          Compiles given regular expression and creates a Pattern object to apply such rule on concrete text contents.
static Version getClassVersion()
          Retrieves the current version of this class.
protected  org.apache.regexp.RECompiler getDelegatedInstance()
          Retrieves an instance of RECompilerCompiler class.
 Version getVersion()
          Retrieves the current version of this object.
 boolean isCaseSensitive()
          Retrieves whether the compiler should care about case sensitiveness or not.
 boolean isMultiline()
          Sets whether the compiler should care about new line delimiters or not.
private  boolean resetOptions()
          Resets the compiler options.
 void setCaseSensitive(boolean caseSensitive)
          Sets whether the compiler should care about case sensitiveness or not.
 void setMultiline(boolean multiline)
          Sets whether the compiler should care about new line delimiters or not.
 
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.regexp.RECompiler m__Instance
Delegated instance.


m__bCaseSensitive

private boolean m__bCaseSensitive
Case sensitiveness.


m__bMultiline

private boolean m__bMultiline
Multiline parsing.


VERSION

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

Constructor Detail

CompilerRegexpAdapter

public CompilerRegexpAdapter()
Method Detail

compile

public org.acmsl.regexpplugin.Pattern compile(java.lang.String regexp)
                                       throws org.acmsl.regexpplugin.MalformedPatternException
Compiles given regular expression and creates a Pattern object to apply such rule on concrete text contents.

Specified by:
compile in interface org.acmsl.regexpplugin.Compiler

resetOptions

private boolean resetOptions()
Resets the compiler options.


getDelegatedInstance

protected org.apache.regexp.RECompiler getDelegatedInstance()
Retrieves an instance of RECompilerCompiler class.


setCaseSensitive

public void setCaseSensitive(boolean caseSensitive)
Sets whether the compiler should care about case sensitiveness or not.

Specified by:
setCaseSensitive in interface org.acmsl.regexpplugin.Compiler

isCaseSensitive

public boolean isCaseSensitive()
Retrieves whether the compiler should care about case sensitiveness or not.

Specified by:
isCaseSensitive in interface org.acmsl.regexpplugin.Compiler

setMultiline

public void setMultiline(boolean multiline)
Sets whether the compiler should care about new line delimiters or not.

Specified by:
setMultiline in interface org.acmsl.regexpplugin.Compiler

isMultiline

public boolean isMultiline()
Sets whether the compiler should care about new line delimiters or not.

Specified by:
isMultiline in interface org.acmsl.regexpplugin.Compiler

getVersion

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


getClassVersion

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