org.apache.tools.ant.util.regexp
public class RegexpMatcherFactory extends Object
ant.regexp.matcherimpl
and the classes
available.
In a more general framework this class would be abstract and have a static newInstance method.
Constructor Summary | |
---|---|
RegexpMatcherFactory() Constructor for RegexpMatcherFactory. |
Method Summary | |
---|---|
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.
|
protected void | testAvailability(String className)
Test if a particular class is available to be used.
|
Parameters: className a String
value
Returns: a RegexpMatcher
value
Throws: BuildException if an error occurs
Returns: the matcher
Throws: BuildException on error
Parameters: p Project whose ant.regexp.regexpimpl property will be used.
Returns: the matcher
Throws: BuildException on error
Parameters: className a String
value
Throws: BuildException if an error occurs