org.apache.tools.ant.types
public class Substitution extends DataType
<substitition [ [id="id"] expression="expression" | refid="id" ] />
See Also: org.apache.oro.text.regex.Perl5Substitution
Field Summary | |
---|---|
static String | DATA_TYPE_NAME The name of this data type |
Constructor Summary | |
---|---|
Substitution() Constructor for Substitution. |
Method Summary | |
---|---|
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. |
Parameters: p the project to look for the regular expression if this object is a reference
Returns: the pattern string
Parameters: p the project to look for the regular expression reference
Returns: the resolved reference
Parameters: expression the regular expression to use