|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.acmsl.regexpplugin.jakartaoro.Perl5CompilerOROAdapter
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.
Field Summary | |
static org.acmsl.version.Version |
VERSION
Concrete version object updated everytime it's checked-in in a CVS repository. |
Constructor Summary | |
Perl5CompilerOROAdapter()
|
Method Summary | |
Pattern |
compile(java.lang.String regexp)
Compiles given regular expression and creates a Pattern object to apply such rule on concrete text contents. |
static org.acmsl.version.Version |
getClassVersion()
Retrieves the current version of this class. |
protected org.apache.oro.text.regex.Perl5Compiler |
getDelegatedInstance()
Retrieves an instance of Perl5Compiler class. |
org.acmsl.version.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. |
protected void |
setAdaptee(org.apache.oro.text.regex.Perl5Compiler adaptee)
Sets the adaptee. |
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 |
public static final org.acmsl.version.Version VERSION
Constructor Detail |
public Perl5CompilerOROAdapter()
Method Detail |
public Pattern compile(java.lang.String regexp) throws MalformedPatternException
compile
in interface Compiler
regexp
- the regular expression to compile.
org.apache.oro.text.regex.MalformedPatternException
- if given regexp is malformed.
MalformedPatternException
- if given regexp is malformed.protected org.apache.oro.text.regex.Perl5Compiler getDelegatedInstance()
protected void setAdaptee(org.apache.oro.text.regex.Perl5Compiler adaptee)
adaptee
- the compiler to adapt.public void setCaseSensitive(boolean caseSensitive)
setCaseSensitive
in interface Compiler
caseSensitive
- true for differentiate upper from lower case.public boolean isCaseSensitive()
isCaseSensitive
in interface Compiler
public void setMultiline(boolean multiline)
setMultiline
in interface Compiler
multiline
- false for parsing each line at a time.public boolean isMultiline()
isMultiline
in interface Compiler
public org.acmsl.version.Version getVersion()
getVersion
in interface org.acmsl.version.Versionable
public static org.acmsl.version.Version getClassVersion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |