Class ToneNumberMatcher

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

public class ToneNumberMatcher extends Object implements PhoneMatcher
Matcher for tone numbers. This matcher matches if the given element is a ToneNumber instance. This matcher does not check for specific tone numbers, use the :tn("toneNumbers") plugin matcher for that functionality. The phonex for this matcher is \t.
  • Constructor Details

    • ToneNumberMatcher

      public ToneNumberMatcher()
  • Method Details

    • 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