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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.acmsl.regexpplugin.jdk14regexp.CompilerJDKAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.Compiler

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

JDK1.4-specific regexp compiler adapter. This class makes possible the use of JDK1.4 compilers within this API.

Version:
$Revision: 1.6 $

Field Summary
private  boolean m__bCaseSensitive
          Case sensitiveness.
private  boolean m__bMultiline
          Multiline parsing.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
CompilerJDKAdapter()
           
 
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.
 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__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

CompilerJDKAdapter

public CompilerJDKAdapter()
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.


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.