|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.jutil.java.regex.Pattern
A class that adapts the jregex.Pattern
interface to the
java.util.regex.Pattern
interface.
Field Summary | |
static int |
DEFAULT
public invariant pattern() != null; |
static int |
DOTALL
|
static int |
MULTILINE
|
Constructor Summary | |
Pattern(java.lang.String regex)
public behavior pre regex != null; post pattern().equals(regex); post flags() == DEFAULT; signals (PatternSyntaxException) (* The given String is not a valid regular expression *); Initialize a new Pattern with default flags and the given regular expression |
|
Pattern(java.lang.String regex,
int flags)
public behavior pre regex != null; pre (* The given flags must be valid. |
Method Summary | |
int |
flags()
Return the flags of this Pattern. |
java.lang.String |
pattern()
public behavior post \result.equals(toString()); Return the pattern used to build this Pattern. |
Field Detail |
public static final int DEFAULT
public static final int DOTALL
public static final int MULTILINE
Constructor Detail |
public Pattern(java.lang.String regex) throws jregex.PatternSyntaxException
regex
- The regular expression string.public Pattern(java.lang.String regex, int flags) throws jregex.PatternSyntaxException
regex
- The regular expression string.flags
- The flags for the new Pattern.Method Detail |
public java.lang.String pattern()
public int flags()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |