| org.apache.ivy.plugins.matcher.Matcher
All known Subclasses: org.apache.ivy.plugins.matcher.AnyMatcher, org.apache.ivy.plugins.matcher.NoMatcher,
Matcher | public interface Matcher (Code) | | An interface that defines a string matcher.
|
Method Summary | |
public boolean | isExact() Return if the matcher will match *only* if the expression equals the input. | public boolean | matches(String input) Check whether a given string is matched by this matcher.
Parameters: input - the string to be matched. |
isExact | public boolean isExact()(Code) | | Return if the matcher will match *only* if the expression equals the input. WARN: This is
used only as a performance trick, to avoid scanning for things when you already know exactly
what you want. In the install task where it used it avoid scanning the repository to list all
modules to find that only one matches, and that it has the name requested.
true if the matcher only matches when the expression is equals to the input, falseotherwise. |
matches | public boolean matches(String input)(Code) | | Check whether a given string is matched by this matcher.
Parameters: input - the string to be matched. Cannot be null. true if the input string is matched, false otherwise. |
|
|