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.
author | <a href="mailto:yl@seasonfive.com">Yannick Lecaillez</a> |
---|---|
version | $Id$ |
access | public |
see | \global\phing.util.regex.RegexMatcher |
package | phing.types |
__construct()
circularReference()
inherited_from | \DataType::circularReference() |
---|
dieOnCircularReference($stk, \Project $p)
If one is included, throw a BuildException created by circularReference
This implementation is appropriate only for a DataType that cannot hold other DataTypes as children.
The general contract of this method is that it shouldn't do anything if checked is true and set it to true on exit.
inherited_from | \DataType::dieOnCircularReference() |
---|
getCheckedRef($requiredClass, $dataTypeName)
inherited_from | \DataType::getCheckedRef() |
---|
getDescription()
inherited_from | \DataType::getDescription() |
---|
getIgnoreCase()
getModifiers()
getMultiline()
getPattern($p)
getProject() : \Project
inherited_from | \ProjectComponent::getProject() |
---|---|
inherited_from | \DataType::getProject() |
\Project
Reference to current porject objectgetRef(\Project $p)
getRegexp(\Project $p)
getReplace($p)
isReference()
inherited_from | \DataType::isReference() |
---|
log(string $msg, integer $level)
inherited_from | \ProjectComponent::log() |
---|---|
inherited_from | \DataType::log() |
string
The message to be logged.
integer
The message's priority at this message should have
noChildrenAllowed()
inherited_from | \DataType::noChildrenAllowed() |
---|
parsingComplete() : void
inherited_from | \DataType::parsingComplete() |
---|
setDescription($desc)
It will be useful in commenting what we are doing.
inherited_from | \DataType::setDescription() |
---|
setIgnoreCase($bit)
setModifiers($modifiers)
setMultiline($multiline)
setPattern($pattern)
setProject(\Project $project)
inherited_from | \ProjectComponent::setProject() |
---|---|
inherited_from | \DataType::setProject() |
setRefid(\Reference $r) : void
Subclasses may need to check whether any other attributes have been set as well or child elements have been created and thus override this method. if they do they must call parent::setRefid()
inherited_from | \DataType::setRefid() |
---|
\Reference
setReplace($replace)
tooManyAttributes()
inherited_from | \DataType::tooManyAttributes() |
---|
$description
inherited_from | \DataType::$$description |
---|
$ref
Type of Reference
inherited_from | \DataType::$$ref |
---|
$checked : boolean
Subclasses are responsible for setting this value to false if we'd need to investigate this condition (usually because a child element has been added that is a subclass of DataType).
inherited_from | \DataType::$$checked |
---|
$project : \Project
inherited_from | \ProjectComponent::$$project |
---|---|
inherited_from | \DataType::$$project |
$ignoreCase
todo | Probably both $ignoreCase and $multiline should be removed from attribute list of RegularExpression class: actual values are preserved on regexp *engine* level, not expression object itself. |
---|
$multiline
$regexp