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" ] />
Perl5Compiler,
RE,
Pattern,
Regexp| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATA_TYPE_NAME
Name of this data type
|
description, location, project| Constructor and Description |
|---|
RegularExpression() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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(java.lang.String pattern)
sets the regular expression pattern
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic static final java.lang.String DATA_TYPE_NAME
public void setPattern(java.lang.String pattern)
pattern - regular expression patternpublic java.lang.String getPattern(Project p)
p - projectpublic Regexp getRegexp(Project p)
p - projectpublic RegularExpression getRef(Project p)
p - project