org.apache.tools.ant.taskdefs.condition
public class Matches extends ProjectComponent implements Condition
Since: Ant 1.7
Method Summary | |
---|---|
void | addRegexp(RegularExpression regularExpression)
A regular expression.
|
boolean | eval() |
void | setCasesensitive(boolean b)
Whether to ignore case or not. |
void | setMultiline(boolean b)
Whether to match should be multiline. |
void | setPattern(String pattern)
Set the regular expression to match against
|
void | setSingleLine(boolean b)
Whether to treat input as singleline ('.' matches newline).
|
void | setString(String string)
Set the string
|
Parameters: regularExpression the regular expression object to be configured as an element
Returns: true if the string matches the regular expression pattern
Throws: BuildException if the attributes are not set correctly
Parameters: b if false, ignore case.
Since: Ant 1.7
Parameters: b the value to set.
Parameters: pattern the regular expression pattern
Parameters: b the value to set.
Parameters: string the string to match