Methods Summary |
---|
public boolean | eval()
if (string == null || subString == null) {
throw new BuildException("both string and substring are required "
+ "in contains");
}
return caseSensitive
? string.indexOf(subString) > -1
: string.toLowerCase().indexOf(subString.toLowerCase()) > -1;
|
public void | setCasesensitive(boolean b)Whether to search ignoring case or not.
caseSensitive = b;
|
public void | setString(java.lang.String string)The string to search in.
this.string = string;
|
public void | setSubstring(java.lang.String subString)The string to search for.
this.subString = subString;
|