uk.org.ogsadai.activity.files.regexp
Class JavaPattern
java.lang.Object
|
+--uk.org.ogsadai.activity.files.regexp.JavaPattern
- public class JavaPattern
- extends java.lang.Object
Represents a regular expression of the type available in the Java 1.4 Regular Expression support. Implements a wrapper around java.util.regex.Pattern
.
See http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html#sum for a detailed specification of the syntax of permitted regular expressions.
- Author:
- The OGSA-DAI Project Team
Field Summary |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.util.regex.Pattern |
mPattern
The underlying java.util.regex.Pattern object. |
Constructor Summary |
JavaPattern(java.lang.String regexp)
Compile a new Java 1.4-style regular expression object from the given string. |
Method Summary |
JavaMatcher |
matcher()
Create and return a new matcher object intended to find matches of this regular expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
Copyright statement
- See Also:
- Constant Field Values
mPattern
private java.util.regex.Pattern mPattern
-
The underlying
java.util.regex.Pattern
object.
JavaPattern
public JavaPattern(java.lang.String regexp)
-
Compile a new Java 1.4-style regular expression object from the given string.
- Parameters:
regexp
- the string containing the regular expression
matcher
public JavaMatcher matcher()
-
Create and return a new matcher object intended to find matches of this regular expression.
-
- Returns:
- the matcher object