Top Description Constructors Methods
org.apache.tools.ant.util.regexp

public Class RegexpFactory

extends RegexpMatcherFactory
Class Inheritance
Imports
org.apache.tools.ant.BuildException, .MagicNames, .Project, org.apache.tools.ant.util.ClasspathUtils

Regular expression factory, which will create Regexp objects. The actual implementation class depends on the System or Ant Property: ant.regexp.regexpimpl.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Regexp

Returns:

the instance.
createRegexpInstance
(String
the name of the class to use.
classname
)

Wrapper over RegexpMatcherFactory.createInstance that ensures that we are dealing with a Regexp implementation.

public Regexp

Returns:

the matcher instance
newRegexp
()

Create a new regular expression matcher instance.

public Regexp

Returns:

the matcher instance
newRegexp
(Project
Project whose ant.regexp.regexpimpl property will be used.
p
)

Create a new regular expression matcher instance.

Inherited from org.apache.tools.ant.util.regexp.RegexpMatcherFactory:
createInstancenewRegexpMatchernewRegexpMatcherregexpMatcherPresenttestAvailability

Constructor Detail

RegexpFactoryback to summary
public RegexpFactory()

Method Detail

createRegexpInstanceback to summary
protected Regexp createRegexpInstance(String classname) throws BuildException

Wrapper over RegexpMatcherFactory.createInstance that ensures that we are dealing with a Regexp implementation.

Parameters
classname:String

the name of the class to use.

Returns:Regexp

the instance.

Exceptions
BuildException:
if there is a problem.
Since
1.3
See Also
RegexpMatcherFactory#createInstance(String)
newRegexpback to summary
public Regexp newRegexp() throws BuildException

Create a new regular expression matcher instance.

Returns:Regexp

the matcher instance

Exceptions
BuildException:
on error
newRegexpback to summary
public Regexp newRegexp(Project p) throws BuildException

Create a new regular expression matcher instance.

Parameters
p:Project

Project whose ant.regexp.regexpimpl property will be used.

Returns:Regexp

the matcher instance

Exceptions
BuildException:
on error