Class VisitorAdapter<T>

java.lang.Object
ca.phon.visitor.VisitorAdapter<T>
Type Parameters:
T -
All Implemented Interfaces:
Visitor<T>
Direct Known Subclasses:
AnyDiacriticPhoneMatcher.DiacriticVisitor, AudiblePhoneVisitor, BasePhoneMatcher.BasePhoneVisitor, CombiningDiacriticPhoneMatcher.CombiningDiacriticVisitor, CompoundPhoneMatcher.CompoundPhoneVisitor, CoverVisitor, DiacriticFilter, IPAMorphemeVisitor, IpaToXmlVisitor, IpaToXmlVisitor, IPATranscript.ToStringVisitor, OptionBoxVisitior, OrthographyMorphemeVisitor, OrthographyTreeBuilder, OrthoGroupField.HighlightVisitor, OrthoLookupVisitor, OrthoToIPAVisitor, OrthoToXmlVisitor, OrthoToXmlVisitor, OrthoWordExtractor, ParamPanelFactory, PhonexFlagVisitor, PhoTreeBuilder.ElementVisitor, PrefixDiacriticPhoneMatcher.PrefixDiacriticVisitor, PunctuationFilter, ReplaceExpressionVisitor, ScriptParametersToHTML, SonorityNode.SonorityVisitor, StripSyllabifcationVisitor, SuffixDiacriticPhoneMatcher.SuffixDiacriticVisitor, SyllableBoundaryTransition.PunctuationTest, SyllableVisitor, WordLookupVisitor, WordVisitor, XMLEventVisitor, XMLSessionReader_v12.CopyTranscriptVisitor, XMLSessionReader_v13.CopyTranscriptVisitor

public abstract class VisitorAdapter<T> extends Object implements Visitor<T>
Multiple dispatch visitor adapter. The generic visit(Object) method will look for other methods in this class with have the Visits annotation declaring the given objects specific type. Other wise, the fallbackVisit(Object) method is called.
  • Constructor Details

    • VisitorAdapter

      public VisitorAdapter()
  • Method Details

    • visit

      public void visit(T obj)
      Description copied from interface: Visitor
      Generic visit method.
      Specified by:
      visit in interface Visitor<T>
    • fallbackVisit

      public abstract void fallbackVisit(T obj)
      Generic, i.e., fallback, processing method.
      Parameters:
      T - the object to visit