This method of the WildcardExpression Class evaluates the expression on a string.
public boolean match(String s);
Returns true if the expression accepts the string.