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
  • Constructor Details

    • JakartaOroRegexp

      public JakartaOroRegexp()
  • Method Details

    • substitute

      public String substitute(String input, String argument, int options) throws BuildException
      Perform a substitution on the regular expression.
      Specified by:
      substitute in 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
    • 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