org.apache.tools.ant.util.regexp
Class RegexpMatcherFactory
java.lang.Objectorg.apache.tools.ant.util.regexp.RegexpMatcherFactory
public class RegexpMatcherFactory
extends java.lang.Object
Simple Factory Class that produces an implementation of
RegexpMatcher based on the system property
ant.regexp.matcherimpl and the classes
available.
In a more general framework this class would be abstract and
have a static newInstance method.
RegexpMatcherFactory
public RegexpMatcherFactory()
Constructor for RegexpMatcherFactory.
createInstance
protected RegexpMatcher createInstance(String className)
throws BuildException Create an instance of a matcher from a classname.
className - a String value
newRegexpMatcher
public RegexpMatcher newRegexpMatcher(Project p)
throws BuildException
Create a new regular expression instance.
p - Project whose ant.regexp.regexpimpl property will be used.
testAvailability
protected void testAvailability(String className)
throws BuildException Test if a particular class is available to be used.
className - a String value
Copyright B) 2000-2006 Apache Software Foundation. All Rights Reserved.