Interface Matcher<M>

Type Parameters:
M - The matchee type.
All Superinterfaces:
Matchable<M>, org.refcodes.mixin.Schemable<MatcherSchema>
All Known Subinterfaces:
WildcardMatcher
All Known Implementing Classes:
AbstractMatcheeMatcher, AbstractMatcher, AbstractMatcherComposite, AbstractWildcardMatcher, AndMatcher, AnyMatcher, EqualWithMatcher, GreaterOrEqualThanMatcher, GreaterThanMatcher, IsAssignableFromMatcher, LessOrEqualThanMatcher, LessThanMatcher, NoneMatcher, NotEqualWithMatcher, NotMatcher, OrMatcher, PathMatcher, RegExpMatcher

public interface Matcher<M> extends Matchable<M>, org.refcodes.mixin.Schemable<MatcherSchema>
The matcher is used to test whether a matchee matches certain criteria. A matcher may be an own implementation or it my get somehow 'nested' (inspired by http://code.mycila.com/wiki/MycilaEvent) having different matchers which in combination do some custom matching as needed by the business logic. The method Schemable.toSchema() discovers a Schema from a Matcher for documenting or debugging purposes of such a nested Matcher structure,
  • Method Summary

    Methods inherited from interface org.refcodes.matcher.Matchable

    isMatching

    Methods inherited from interface org.refcodes.mixin.Schemable

    toSchema