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
 
 public class JakartaOroRegexp extends JakartaOroMatcher implements Regexp Regular expression implementation using the Jakarta Oro package
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.util.regexp.JakartaOroMatchercompiler, matcher
 - 
Fields inherited from interface org.apache.tools.ant.util.regexp.RegexpREPLACE_ALL, REPLACE_FIRST
 - 
Fields inherited from interface org.apache.tools.ant.util.regexp.RegexpMatcherMATCH_CASE_INSENSITIVE, MATCH_DEFAULT, MATCH_MULTILINE, MATCH_SINGLELINE
 
- 
 - 
Constructor SummaryConstructors Constructor Description JakartaOroRegexp()
 - 
Method SummaryModifier and Type Method Description protected intgetSubsOptions(int options)Convert ant regexp substitution option to oro options.java.lang.Stringsubstitute(java.lang.String input, java.lang.String argument, int options)Perform a substitution on the regular expression.- 
Methods inherited from class org.apache.tools.ant.util.regexp.JakartaOroMatchergetCompiledPattern, getCompilerOptions, getGroups, getGroups, getPattern, matches, matches, setPattern
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tools.ant.util.regexp.RegexpMatchergetGroups, getGroups, getPattern, matches, matches, setPattern
 
- 
 
- 
- 
- 
Method Detail- 
substitutepublic java.lang.String substitute(java.lang.String input, java.lang.String argument, int options) throws BuildExceptionPerform a substitution on the regular expression.- Specified by:
- substitutein interface- Regexp
- Parameters:
- input- The string to substitute on
- argument- The string which defines the substitution
- options- The list of options for the match and replace.
- Returns:
- the result of the operation
- Throws:
- BuildException- on error
 
 - 
getSubsOptionsprotected int getSubsOptions(int options) Convert ant regexp substitution option to oro options.- Parameters:
- options- the ant regexp options
- Returns:
- the oro substitution options
 
 
- 
 
-