|
JakartaRegexpRegexp (Apache Ant API)
org.apache.tools.ant.util.regexp
Class JakartaRegexpRegexp
java.lang.Object
|
+--org.apache.tools.ant.util.regexp.JakartaRegexpMatcher
|
+--org.apache.tools.ant.util.regexp.JakartaRegexpRegexp
- All Implemented Interfaces:
- Regexp, RegexpMatcher
- public class JakartaRegexpRegexp
- extends JakartaRegexpMatcher
- implements Regexp
Regular expression implementation using the Jakarta Regexp package
- Author:
- Matthew Inger mattinger@mindless.com
Method Summary |
protected int |
getSubsOptions(int options)
|
java.lang.String |
substitute(java.lang.String input,
java.lang.String argument,
int options)
Perform a substitution on the regular expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JakartaRegexpRegexp
public JakartaRegexpRegexp()
getSubsOptions
protected int getSubsOptions(int options)
substitute
public java.lang.String substitute(java.lang.String input,
java.lang.String argument,
int options)
throws BuildException
- Description copied from interface:
Regexp
- Perform a substitution on the regular expression.
- Specified by:
substitute in interface Regexp
- Parameters:
input - The string to substitute onargument - The string which defines the substitutionoptions - The list of options for the match and replace. See the
MATCH_ and REPLACE_ constants above.
BuildException
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.
|