Package org.apache.tools.ant.util.regexp
Class JakartaOroRegexp
java.lang.Object
org.apache.tools.ant.util.regexp.JakartaOroMatcher
org.apache.tools.ant.util.regexp.JakartaOroRegexp
- All Implemented Interfaces:
Regexp,RegexpMatcher
Regular expression implementation using the Jakarta Oro package
-
Field Summary
Fields inherited from class org.apache.tools.ant.util.regexp.JakartaOroMatcher
compiler, matcherFields inherited from interface org.apache.tools.ant.util.regexp.Regexp
REPLACE_ALL, REPLACE_FIRSTFields inherited from interface org.apache.tools.ant.util.regexp.RegexpMatcher
MATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetSubsOptions(int options) Convert ant regexp substitution option to oro options.substitute(String input, String argument, int options) Perform a substitution on the regular expression.Methods inherited from class org.apache.tools.ant.util.regexp.JakartaOroMatcher
getCompiledPattern, getCompilerOptions, getGroups, getGroups, getPattern, matches, matches, setPatternMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tools.ant.util.regexp.RegexpMatcher
getGroups, getGroups, getPattern, matches, matches, setPattern
-
Constructor Details
-
JakartaOroRegexp
public JakartaOroRegexp()
-
-
Method Details
-
substitute
Perform a substitution on the regular expression.- Specified by:
substitutein interfaceRegexp- Parameters:
input- The string to substitute onargument- The string which defines the substitutionoptions- The list of options for the match and replace.- Returns:
- the result of the operation
- Throws:
BuildException- on error
-
getSubsOptions
protected int getSubsOptions(int options) Convert ant regexp substitution option to oro options.- Parameters:
options- the ant regexp options- Returns:
- the oro substitution options
-