org.apache.tools.ant.types
Class Substitution
- Cloneable
public class Substitution
A regular expression substitution datatype. It is an expression
that is meant to replace a regular expression.
<substitition [ [id="id"] expression="expression" | refid="id" ]
/>
org.apache.oro.text.regex.Perl5Substitution
String | getExpression(Project p) -
Gets the pattern string for this RegularExpression in the
given project.
|
Substitution | getRef(Project p) -
Get the RegularExpression this reference refers to in
the given project.
|
void | setExpression(String expression) - Set the pattern string for this regular expression substitution.
|
checkAttributesAllowed , checkChildrenAllowed , circularReference , clone , dieOnCircularReference , dieOnCircularReference , dieOnCircularReference , getCheckedRef , getCheckedRef , getCheckedRef , getCheckedRef , getDataTypeName , getRefid , invokeCircularReferenceCheck , isChecked , isReference , noChildrenAllowed , setChecked , setRefid , toString , tooManyAttributes |
DATA_TYPE_NAME
public static final String DATA_TYPE_NAME
The name of this data type
Substitution
public Substitution()
Constructor for Substitution.
getExpression
public String getExpression(Project p)
Gets the pattern string for this RegularExpression in the
given project.
p
- the project to look for the regular expression if this object is
a reference
getRef
public Substitution getRef(Project p)
Get the RegularExpression this reference refers to in
the given project. Check for circular references too.
p
- the project to look for the regular expression reference
setExpression
public void setExpression(String expression)
Set the pattern string for this regular expression substitution.
expression
- the regular expression to use