Package org.apache.tools.ant.util.regexp
Class RegexpFactory
java.lang.Object
org.apache.tools.ant.util.regexp.RegexpMatcherFactory
org.apache.tools.ant.util.regexp.RegexpFactory
Regular expression factory, which will create Regexp objects.  The
 actual implementation class depends on the System or Ant Property:
 
ant.regexp.regexpimpl.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected RegexpcreateRegexpInstance(String classname) Wrapper over RegexpMatcherFactory.createInstance that ensures that we are dealing with a Regexp implementation.Create a new regular expression matcher instance.Create a new regular expression matcher instance.Methods inherited from class org.apache.tools.ant.util.regexp.RegexpMatcherFactorycreateInstance, newRegexpMatcher, newRegexpMatcher, regexpMatcherPresent, testAvailability
- 
Constructor Details- 
RegexpFactorypublic RegexpFactory()
 
- 
- 
Method Details- 
newRegexpCreate a new regular expression matcher instance.- Returns:
- the matcher instance
- Throws:
- BuildException- on error
 
- 
newRegexpCreate a new regular expression matcher instance.- Parameters:
- p- Project whose ant.regexp.regexpimpl property will be used.
- Returns:
- the matcher instance
- Throws:
- BuildException- on error
 
- 
createRegexpInstanceWrapper over RegexpMatcherFactory.createInstance that ensures that we are dealing with a Regexp implementation.- Parameters:
- classname- the name of the class to use.
- Returns:
- the instance.
- Throws:
- BuildException- if there is a problem.
- Since:
- 1.3
- See Also:
 
 
-