Class PhoneClassMatcher

java.lang.Object
ca.phon.phonex.PhoneClassMatcher
All Implemented Interfaces:
PhoneMatcher

public class PhoneClassMatcher extends Object implements PhoneMatcher
Combine multiple phone matchers.
  • Constructor Details

    • PhoneClassMatcher

      public PhoneClassMatcher()
    • PhoneClassMatcher

      public PhoneClassMatcher(PhoneMatcher... matchers)
      Constructor
    • PhoneClassMatcher

      public PhoneClassMatcher(boolean not, PhoneMatcher... matchers)
      Constructor
      Parameters:
      matchers - list of matchers
  • Method Details

    • addMatcher

      public void addMatcher(PhoneMatcher pm)
    • isNot

      public boolean isNot()
    • setNot

      public void setNot(boolean not)
    • matches

      public boolean matches(IPAElement p)
      Description copied from interface: PhoneMatcher
      Perform test on given phone.
      Specified by:
      matches in interface PhoneMatcher
    • matchesAnything

      public boolean matchesAnything()
      Description copied from interface: PhoneMatcher
      Does this matcher match anything? Used at runtime to help determine proper backtracking paths.
      Specified by:
      matchesAnything in interface PhoneMatcher
    • toString

      public String toString()
      Overrides:
      toString in class Object