org.apache.ivy.plugins.matcher

Class ExactOrRegexpPatternMatcher

public final class ExactOrRegexpPatternMatcher extends AbstractPatternMatcher

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: ExactPatternMatcher RegexpPatternMatcher

Field Summary
static ExactOrRegexpPatternMatcherINSTANCE
Constructor Summary
ExactOrRegexpPatternMatcher()
Method Summary
protected MatchernewMatcher(String expression)

Field Detail

INSTANCE

public static final ExactOrRegexpPatternMatcher INSTANCE

Constructor Detail

ExactOrRegexpPatternMatcher

public ExactOrRegexpPatternMatcher()

Method Detail

newMatcher

protected Matcher newMatcher(String expression)