public class Matches extends ProjectComponent implements Condition
| 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(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 | 
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic void addRegexp(RegularExpression regularExpression)
regularExpression - the regular expression object
                          to be configured as an elementpublic boolean eval()
             throws BuildException
Conditioneval in interface ConditionBuildException - if the attributes are not set correctlypublic void setCasesensitive(boolean b)
b - if false, ignore case.public void setMultiline(boolean b)
b - the value to set.public void setPattern(String pattern)
pattern - the regular expression patternpublic void setSingleLine(boolean b)
b - the value to set.public void setString(String string)
string - the string to match