org.apache.tools.ant.util.regexp
Class RegexpFactory
public class RegexpFactory
Regular expression factory, which will create Regexp objects. The
actual implementation class depends on the System or Ant Property:
ant.regexp.regexpimpl
.
RegexpFactory
public RegexpFactory()
Constructor for RegexpFactory
createRegexpInstance
protected Regexp createRegexpInstance(String classname)
throws BuildException
Wrapper over RegexpMatcherFactory.createInstance that ensures that
we are dealing with a Regexp implementation.
classname
- the name of the class to use.
newRegexp
public Regexp newRegexp()
throws BuildException
Create a new regular expression matcher instance.
newRegexp
public Regexp newRegexp(Project p)
throws BuildException
Create a new regular expression matcher instance.
p
- Project whose ant.regexp.regexpimpl property will be used.