org.apache.ivy.plugins.matcher

Class AbstractPatternMatcher

public abstract class AbstractPatternMatcher extends Object implements PatternMatcher

An abstract implementation of the pattern matcher providing base template methods
Constructor Summary
AbstractPatternMatcher(String name)
Create a new instance of a pattern matcher
Method Summary
MatchergetMatcher(String expression)
StringgetName()
protected abstract MatchernewMatcher(String expression)
Returns an instance of the implementation specific matcher.
StringtoString()

Constructor Detail

AbstractPatternMatcher

public AbstractPatternMatcher(String name)
Create a new instance of a pattern matcher

Parameters: name the name of the pattern matcher. Never null.

Method Detail

getMatcher

public Matcher getMatcher(String expression)

getName

public String getName()

newMatcher

protected abstract Matcher newMatcher(String expression)
Returns an instance of the implementation specific matcher.

Parameters: expression the string to be matched.

Returns: the instance of the related matcher. Never null.

toString

public String toString()