Class OrthographyTreeBuilder

java.lang.Object
ca.phon.visitor.VisitorAdapter<OrthoElement>
ca.phon.phontalk.parser.OrthographyTreeBuilder
All Implemented Interfaces:
Visitor<OrthoElement>

public class OrthographyTreeBuilder extends VisitorAdapter<OrthoElement>
Build contents of phonetic group tree from phon Orthography
  • Constructor Details

    • OrthographyTreeBuilder

      public OrthographyTreeBuilder()
  • Method Details

    • buildTree

      public void buildTree(Stack<org.antlr.runtime.tree.CommonTree> uttNodeStack, org.antlr.runtime.tree.CommonTree parent, Orthography ortho)
    • fallbackVisit

      public void fallbackVisit(OrthoElement obj)
      Description copied from class: VisitorAdapter
      Generic, i.e., fallback, processing method.
      Specified by:
      fallbackVisit in class VisitorAdapter<OrthoElement>
    • visitWordnet

      @Visits public void visitWordnet(OrthoWordnet wordnet)
    • visitWord

      @Visits public void visitWord(OrthoWord word)
    • visitEvent

      @Visits public void visitEvent(OrthoEvent event)
    • visitComment

      @Visits public void visitComment(OrthoComment comment)
    • visitPunct

      @Visits public void visitPunct(OrthoPunct punct)
    • getTerminator

      public org.antlr.runtime.tree.CommonTree getTerminator()
    • addTerminator

      public void addTerminator(org.antlr.runtime.tree.CommonTree parent, String type)
      Add a terminator