java.lang.Cloneable
, Condition
public class Matches extends ProjectComponent implements Condition
description, location, project
Constructor | Description |
---|---|
Matches() |
Modifier and Type | Method | 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
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public 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
Condition
eval
in interface Condition
BuildException
- if the attributes are not set correctly