public class RegexpMatcherFactory extends Object
ant.regexp.regexpimpl and the classes available.
 In a more general framework this class would be abstract and have a static newInstance method.
| Constructor and Description | 
|---|
| RegexpMatcherFactory()Constructor for RegexpMatcherFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected RegexpMatcher | createInstance(String className)Create an instance of a matcher from a classname. | 
| RegexpMatcher | newRegexpMatcher()Create a new regular expression instance. | 
| RegexpMatcher | newRegexpMatcher(Project p)Create a new regular expression instance. | 
| static boolean | regexpMatcherPresent(Project project)Checks if a RegExp-Matcher is available. | 
| protected void | testAvailability(String className)Test if a particular class is available to be used. | 
public RegexpMatcherFactory()
protected RegexpMatcher createInstance(String className) throws BuildException
className - a String valueRegexpMatcher valueBuildException - if an error occurspublic RegexpMatcher newRegexpMatcher() throws BuildException
BuildException - on errorpublic RegexpMatcher newRegexpMatcher(Project p) throws BuildException
p - Project whose ant.regexp.regexpimpl property will be used.BuildException - on errorpublic static boolean regexpMatcherPresent(Project project)
project - The project to check for (may be null)true if available otherwise falseprotected void testAvailability(String className) throws BuildException
className - a String valueBuildException - if an error occurs