org.apache.tools.ant.util.regexp

Class RegexpFactory

public class RegexpFactory extends RegexpMatcherFactory

Regular expression factory, which will create Regexp objects. The actual implementation class depends on the System or Ant Property: ant.regexp.regexpimpl.
Constructor Summary
RegexpFactory()
Constructor for RegexpFactory
Method Summary
protected RegexpcreateRegexpInstance(String classname)
Wrapper over RegexpMatcherFactory.createInstance that ensures that we are dealing with a Regexp implementation.
RegexpnewRegexp()
Create a new regular expression matcher instance.
RegexpnewRegexp(Project p)
Create a new regular expression matcher instance.

Constructor Detail

RegexpFactory

public RegexpFactory()
Constructor for RegexpFactory

Method Detail

createRegexpInstance

protected Regexp createRegexpInstance(String classname)
Wrapper over RegexpMatcherFactory.createInstance that ensures that we are dealing with a Regexp implementation.

Since: 1.3

See Also: createInstance

newRegexp

public Regexp newRegexp()
Create a new regular expression matcher instance.

Returns: the matcher instance

Throws: BuildException on error

newRegexp

public Regexp newRegexp(Project p)
Create 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

Copyright