org.apache.tools.ant.util.regexp
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 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.
|
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.
|
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: project The project to check for (may be null
)
Returns: true
if available otherwise false
Parameters: className a String
value
Throws: BuildException if an error occurs