Package org.apache.tools.ant.types
Class RegularExpression
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.RegularExpression
- All Implemented Interfaces:
- Cloneable
A regular expression datatype.  Keeps an instance of the
 compiled expression for speed purposes.  This compiled
 expression is lazily evaluated (it is compiled the first
 time it is needed).  The syntax is the dependent on which
 regular expression type you are using.  The system property
 "ant.regexp.regexpimpl" will be the classname of the implementation
 that will be used.
 
 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:
- 
Field SummaryFieldsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the pattern string for this RegularExpression in the given project.Get the RegularExpression this reference refers to in the given project.provides a reference to the Regexp contained in thisvoidsetPattern(String pattern) sets the regular expression patternMethods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, 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 org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Field Details- 
DATA_TYPE_NAME
 
- 
- 
Constructor Details- 
RegularExpressionpublic RegularExpression()
 
- 
- 
Method Details- 
setPatternsets the regular expression pattern- Parameters:
- pattern- regular expression pattern
 
- 
getPattern
- 
getRegexp
- 
getRefGet the RegularExpression this reference refers to in the given project. Check for circular references too- Parameters:
- p- project
- Returns:
- resolved RegularExpression instance
 
 
-