Methods Summary |
---|
public java.lang.String | getPattern(org.apache.tools.ant.Project p)Gets the pattern string for this RegularExpression in the
given project.
init(p);
if (isReference()) {
return getRef(p).getPattern(p);
}
setPattern();
return regexp.getPattern();
|
public org.apache.tools.ant.types.RegularExpression | getRef(org.apache.tools.ant.Project p)Get the RegularExpression this reference refers to in
the given project. Check for circular references too
return (RegularExpression) getCheckedRef(p);
|
public org.apache.tools.ant.util.regexp.Regexp | getRegexp(org.apache.tools.ant.Project p)provides a reference to the Regexp contained in this
init(p);
if (isReference()) {
return getRef(p).getRegexp(p);
}
setPattern();
return this.regexp;
|
private void | init(org.apache.tools.ant.Project p)
if (!alreadyInit) {
this.regexp = FACTORY.newRegexp(p);
alreadyInit = true;
}
|
private void | setPattern()
if (setPatternPending) {
regexp.setPattern(myPattern);
setPatternPending = false;
}
|
public void | setPattern(java.lang.String pattern)sets the regular expression pattern
if (regexp == null) {
myPattern = pattern;
setPatternPending = true;
} else {
regexp.setPattern(pattern);
}
|