Class Substitution
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.Substitution
- All Implemented Interfaces:
Cloneable
A regular expression substitution datatype. It is an expression
that is meant to replace a regular expression.
<substitution [ [id="id"] expression="expression" | refid="id" ] />
- See Also:
-
Field Summary
FieldsFields inherited from class ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the pattern string for this RegularExpression in the given project.Get the RegularExpression this reference refers to in the given project.voidsetExpression(String expression) Set the pattern string for this regular expression substitution.Methods inherited from class DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringMethods inherited from class ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Field Details
-
DATA_TYPE_NAME
-
-
Constructor Details
-
Substitution
public Substitution()Constructor for Substitution.
-
-
Method Details
-
setExpression
Set the pattern string for this regular expression substitution.- Parameters:
expression- the regular expression to use
-
getExpression
-
getRef
Get the RegularExpression this reference refers to in the given project. Check for circular references too.- Parameters:
p- the project to look for the regular expression reference- Returns:
- the resolved reference
-