Class UnitsAnnotatedTypeFormatter.UnitsAnnotationFormatter

java.lang.Object
org.checkerframework.javacutil.DefaultAnnotationFormatter
org.checkerframework.checker.units.UnitsAnnotatedTypeFormatter.UnitsAnnotationFormatter
All Implemented Interfaces:
AnnotationFormatter
Enclosing class:
UnitsAnnotatedTypeFormatter

protected static class UnitsAnnotatedTypeFormatter.UnitsAnnotationFormatter extends DefaultAnnotationFormatter
Formats the error printout of any units qualifier that uses Prefix.one.
  • Field Details

    • checker

      protected final BaseTypeChecker checker
      The checker that uses this formatter.
    • elements

      protected final Elements elements
      The element utilities.
  • Constructor Details

    • UnitsAnnotationFormatter

      public UnitsAnnotationFormatter(BaseTypeChecker checker)
      Creates a UnitsAnnotationFormatter.
      Parameters:
      checker - the checker that uses this formatter
  • Method Details