public class Matches extends ProjectComponent implements Condition
description, location, project| Constructor and Description | 
|---|
| Matches() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addRegexp(RegularExpression regularExpression)A regular expression. | 
| boolean | eval()Is this condition true? | 
| void | setCasesensitive(boolean b)Whether to ignore case or not. | 
| void | setMultiline(boolean b)Whether to match should be multiline. | 
| void | setPattern(java.lang.String pattern)Set the regular expression to match against | 
| void | setSingleLine(boolean b)Whether to treat input as singleline ('.' matches newline). | 
| void | setString(java.lang.String string)Set the string | 
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic void setString(java.lang.String string)
string - the string to matchpublic void setPattern(java.lang.String pattern)
pattern - the regular expression patternpublic void addRegexp(RegularExpression regularExpression)
regularExpression - the regular expression object
                          to be configured as an elementpublic void setCasesensitive(boolean b)
b - if false, ignore case.public void setMultiline(boolean b)
b - the value to set.public void setSingleLine(boolean b)
b - the value to set.public boolean eval()
             throws BuildException
Conditioneval in interface ConditionBuildException - if the attributes are not set correctly