Class ExactOrRegexpPatternMatcher
java.lang.Object
org.apache.ivy.plugins.matcher.AbstractPatternMatcher
org.apache.ivy.plugins.matcher.ExactOrRegexpPatternMatcher
- All Implemented Interfaces:
PatternMatcher
A pattern matcher that tries to match exactly the input with the expression, or match it as a
pattern.
The evaluation for matching is perform first by checking if expression and input are equals (via equals method) else it attempts to do it by trying to match the input using the expression as a regexp.
- See Also:
-
Field Summary
FieldsFields inherited from interface PatternMatcher
ANY_EXPRESSION, EXACT, EXACT_OR_REGEXP, GLOB, REGEXP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MatchernewMatcher(String expression) Returns an instance of the implementation specific matcher.Methods inherited from class AbstractPatternMatcher
getMatcher, getName, toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ExactOrRegexpPatternMatcher
public ExactOrRegexpPatternMatcher()
-
-
Method Details
-
newMatcher
Description copied from class:AbstractPatternMatcherReturns an instance of the implementation specific matcher.- Specified by:
newMatcherin classAbstractPatternMatcher- Parameters:
expression- the string to be matched.- Returns:
- the instance of the related matcher. Never null.
-