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
  • Field Details

    • besttext

      Element_text besttext
      The text which matches best the user language or (as fall back) the default language or (as fall-back) any language.
    • textfound

      String textfound
      The contents of besttext, wrapped in parentheses if not langhit
    • langhit

      boolean langhit
      Whether the user language has been hit = no fall back was necessaty.
    • gm

      Input parameter: the usage() method under construction.
    • usage_lang

      final String usage_lang
      Input parameter: The (human) user language for which the usage method gm is under construction.
    • defaultLanguage

      final String defaultLanguage
      Input parameter: The preferred fall-back language. Is equal to Compiler.LINGUA_FRANCA, if at least one entry into this exists. Otherwise arbitrarily chosen from the appearing languages.
  • Constructor Details

    • Phase_usage

      Phase_usage(GeneratedMethod gm, String usage_lang, String defaultLanguage)
      Compile the printing of a found text object to the growing method.
      Parameters:
      usage_lang - the selected language of the usage method do generate.
      defaultLanguage - fall-back if no text version in user_lang exists
  • Method Details