org.apache.tools.ant.taskdefs.condition
Class Matches
- Cloneable, Condition
Simple regular expression condition.
addRegexp
public void addRegexp(RegularExpression regularExpression)
A regular expression.
You can use this element to refer to a previously
defined regular expression datatype instance
regularExpression
- the regular expression object
to be configured as an element
setCasesensitive
public void setCasesensitive(boolean b)
Whether to ignore case or not.
b
- if false, ignore case.
setMultiline
public void setMultiline(boolean b)
Whether to match should be multiline.
setPattern
public void setPattern(String pattern)
Set the regular expression to match against
pattern
- the regular expression pattern
setSingleLine
public void setSingleLine(boolean b)
Whether to treat input as singleline ('.' matches newline).
Corresponsds to java.util.regex.Pattern.DOTALL.
setString
public void setString(String string)
Set the string
string
- the string to match