public class RegexpFactory extends RegexpMatcherFactory
ant.regexp.regexpimpl
.Constructor and Description |
---|
RegexpFactory()
Constructor for RegexpFactory
|
Modifier and Type | Method and Description |
---|---|
protected Regexp |
createRegexpInstance(String classname)
Wrapper over RegexpMatcherFactory.createInstance that ensures that
we are dealing with a Regexp implementation.
|
Regexp |
newRegexp()
Create a new regular expression matcher instance.
|
Regexp |
newRegexp(Project p)
Create a new regular expression matcher instance.
|
createInstance, newRegexpMatcher, newRegexpMatcher, regexpMatcherPresent, testAvailability
protected Regexp createRegexpInstance(String classname) throws BuildException
classname
- the name of the class to use.BuildException
- if there is a problem.RegexpMatcherFactory.createInstance(String)
public Regexp newRegexp() throws BuildException
BuildException
- on errorpublic Regexp newRegexp(Project p) throws BuildException
p
- Project whose ant.regexp.regexpimpl property will be used.BuildException
- on error