Class AbstractMatcher<M>

java.lang.Object
org.refcodes.matcher.AbstractMatcher<M>
Type Parameters:
M - The matchee type
All Implemented Interfaces:
Matchable<M>, Matcher<M>, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.Schemable
Direct Known Subclasses:
AbstractMatcheeMatcher, AbstractMatcherComposite, AbstractWildcardMatcher, AnyMatcher, IsAssignableFromMatcher, NoneMatcher, NotMatcher

public abstract class AbstractMatcher<M> extends Object implements Matcher<M>
The AbstractMatcher provides a base functionality for Matcher implementations.
  • Constructor Details

    • AbstractMatcher

      public AbstractMatcher(String aAlias, String aDescription)
      Constructs an AbstractMatcher with the given description.
      Parameters:
      aAlias - The alias for the according Matcher implementation.
      aDescription - The according matcher's description.
  • Method Details

    • getAlias

      public String getAlias()
      Specified by:
      getAlias in interface org.refcodes.mixin.AliasAccessor
    • toSchema

      public MatcherSchema toSchema()
      Specified by:
      toSchema in interface Matcher<M>
      Specified by:
      toSchema in interface org.refcodes.mixin.Schemable