|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a regexp compiler. Different implementations vary but they all must respect this set of methods.
Field Summary | |
static org.acmsl.version.Version |
VERSION
Concrete version object updated everytime it's checked-in in a CVS repository. |
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. |
boolean |
isCaseSensitive()
Retrieves if the compiler is configured to be case sensitive or not. |
boolean |
isMultiline()
Retrieves if the compiler is configured to care about new line delimiters or not. |
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 interface org.acmsl.version.Versionable |
getVersion |
Field Detail |
public static final org.acmsl.version.Version VERSION
Method Detail |
public Pattern compile(java.lang.String regexp) throws MalformedPatternException
regexp
- the regular expression to compile.
MalformedPatternException
- if given regexp is malformed.public void setCaseSensitive(boolean caseSensitive)
caseSensitive
- true for differentiate upper from lower case.public boolean isCaseSensitive()
public void setMultiline(boolean multiline)
multiline
- false for parsing each line at a time.public boolean isMultiline()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |