public class RegexpFactory extends RegexpMatcherFactory
ant.regexp.regexpimpl.| Constructor and Description |
|---|
RegexpFactory()
Constructor for RegexpFactory
|
| Modifier and Type | Method and Description |
|---|---|
protected Regexp |
createRegexpInstance(java.lang.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, testAvailabilitypublic 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 errorprotected Regexp createRegexpInstance(java.lang.String classname) throws BuildException
classname - the name of the class to use.BuildException - if there is a problem.RegexpMatcherFactory.createInstance(String)