|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.util.regexp.RegexpMatcherFactory
public class RegexpMatcherFactory
Simple Factory Class that produces an implementation of RegexpMatcher based on the system
property 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(java.lang.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(java.lang.String className)
Test if a particular class is available to be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexpMatcherFactory()
Method Detail |
---|
public 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 errorprotected RegexpMatcher createInstance(java.lang.String className) throws BuildException
className
- a String
value
RegexpMatcher
value
BuildException
- if an error occursprotected void testAvailability(java.lang.String className) throws BuildException
className
- a String
value
BuildException
- if an error occurspublic static boolean regexpMatcherPresent(Project project)
project
- The project to check for (may be null
)
true
if available otherwise false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |