org.apache.tools.ant.types
public class RegularExpression extends DataType
Available implementations: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp (default) Based on the JDK's built-in regular expression package org.apache.tools.ant.util.regexp.JakartaOroRegexp Based on the jakarta-oro package org.apache.tools.ant.util.regexp.JakartaRegexpRegexp Based on the jakarta-regexp package
<regexp [ [id="id"] pattern="expression" | refid="id" ] />
See Also: org.apache.oro.text.regex.Perl5Compiler org.apache.regexp.RE java.util.regex.Pattern
UNKNOWN: name="regexp"
Field Summary | |
---|---|
static String | DATA_TYPE_NAME Name of this data type |
Constructor Summary | |
---|---|
RegularExpression()
default constructor |
Method Summary | |
---|---|
String | getPattern(Project p)
Gets the pattern string for this RegularExpression in the
given project. |
RegularExpression | getRef(Project p)
Get the RegularExpression this reference refers to in
the given project. |
Regexp | getRegexp(Project p)
provides a reference to the Regexp contained in this |
void | setPattern(String pattern)
sets the regular expression pattern |
Parameters: p project
Returns: pattern
Parameters: p project
Returns: resolved RegularExpression instance
Parameters: p project
Returns: Regexp instance associated with this RegularExpression instance
Parameters: pattern regular expression pattern