Class Compiler.Phase_usage

All Implemented Interfaces:
PCDataVisitor
Direct Known Subclasses:
Compiler.Phase_usage_enumerations, Compiler.Phase_usage_options
Enclosing class:
Compiler

protected class Compiler.Phase_usage extends Compiler.Phase
  • Method Details

    • resetTextFound

      protected void resetTextFound()
      starts a new search for a best test. Is called by the callers immediately before calling visit(Element_desc).
    • visit

      public void visit(Element_desc el)
      Descend and analyse all contained Element_text. (There is at least one, due to DTD content definition.) Sets the global registers textfound, besttext, and langhit.
      Overrides:
      visit in class Visitor
    • visit

      public void visit(Element_text el)
      Finds the best fitting explanation translation. Namely usage_lang, then defaultLanguage, than arbitrary. (Comes here from Visitor.visit(Element_comment) explicitly, or from visit(Element_desc) implicitly.
      Overrides:
      visit in class Visitor