Class I18nFormatterLubGlbChecker

All Implemented Interfaces:
Processor, OptionConfiguration

public class I18nFormatterLubGlbChecker extends I18nFormatterChecker
This class tests the implementation of GLB computation in the I18n Format String Checker (see issue 723), but it does not test for the crash that occurs if I18nFormatterAnnotatedTypeFactory does not override greatestLowerBound. That is done by tests/all-systems/Issue691.java. It also tests the implementation of LUB computation in the I18n Format String Checker.
  • Constructor Details

    • I18nFormatterLubGlbChecker

      public I18nFormatterLubGlbChecker()
  • Method Details

    • createSourceVisitor

      protected BaseTypeVisitor<?> createSourceVisitor()
      Description copied from class: BaseTypeChecker
      Returns the appropriate visitor that type-checks the compilation unit according to the type system rules.

      This implementation uses the checker naming convention to create the appropriate visitor. If no visitor is found, it returns an instance of BaseTypeVisitor. It reflectively invokes the constructor that accepts this checker and the compilation unit tree (in that order) as arguments.

      Subclasses have to override this method to create the appropriate visitor if they do not follow the checker naming convention.

      Overrides:
      createSourceVisitor in class BaseTypeChecker
      Returns:
      the type-checking visitor
    • initChecker

      public void initChecker()
      Description copied from class: SourceChecker
      Initialize the checker.
      Overrides:
      initChecker in class BaseTypeChecker
      See Also: