uk.org.ogsadai.activity.files.regexp
Class OroAwkPattern
java.lang.Object
|
+--uk.org.ogsadai.activity.files.regexp.OroAwkPattern
- public class OroAwkPattern
- extends java.lang.Object
Represents an AWK-like regular expression of the type available in Jakarta ORO. Implements a wrapper around org.apache.oro.text.awk.AwkPattern
.
See http://jakarta.apache.org/oro/api/org/apache/oro/text/awk/AwkCompiler.html 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 org.apache.oro.text.regex.Pattern |
mPattern
The underlying org.apache.oro.text.awk.AwkPattern object. |
Constructor Summary |
OroAwkPattern(java.lang.String regexp)
Compile a new AWK-style regular expression object from the given string. |
Method Summary |
OroMatcher |
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 org.apache.oro.text.regex.Pattern mPattern
-
The underlying
org.apache.oro.text.awk.AwkPattern
object.
OroAwkPattern
public OroAwkPattern(java.lang.String regexp)
throws org.apache.oro.text.regex.MalformedPatternException
-
Compile a new AWK-style regular expression object from the given string.
- Parameters:
regexp
- the string containing the regular expression
- Throws:
org.apache.oro.text.regex.MalformedPatternException
- if the parameter is not a valid AWK regular expression
matcher
public OroMatcher matcher()
throws UnsupportedRegexpPatternFormatException
-
Create and return a new matcher object intended to find matches of this regular expression.
-
- Returns:
- the matcher object
- Throws:
UnsupportedRegexpPatternFormatException
- if AWK-style patterns are not supported by the OroMatcher
class.