Package org.apache.ivy.plugins.matcher
Interface PatternMatcher
- All Known Implementing Classes:
AbstractPatternMatcher
,ExactOrRegexpPatternMatcher
,ExactPatternMatcher
,GlobPatternMatcher
,RegexpPatternMatcher
public interface PatternMatcher
Interface for a pattern matcher.
The pattern matcher is the main abstraction regarding the matching of an expression. Implementation may vary depending on the expression syntax handling that is desired.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetMatcher
(String expression) Return the matcher for the given expression.getName()
return the name of this pattern matcher
-
Field Details
-
EXACT
'exact' pattern matcher name- See Also:
-
REGEXP
pattern matcher name 'regexp'- See Also:
-
GLOB
pattern matcher 'glob'- See Also:
-
EXACT_OR_REGEXP
pattern matcher name 'exactOrRegexp'- See Also:
-
ANY_EXPRESSION
Any expression string: '*'- See Also:
-
-
Method Details
-
getMatcher
Return the matcher for the given expression.- Parameters:
expression
- the expression to be matched. Cannot be null ?- Returns:
- the matcher instance for the given expression. Never null.
-
getName
String getName()return the name of this pattern matcher- Returns:
- the name of this pattern matcher. Never null.
- See Also:
-