Class SupportedQualsChecker

All Implemented Interfaces:
Processor, OptionConfiguration

public class SupportedQualsChecker extends BaseTypeChecker
Tests that annotations that have @Target(TYPE_USE, OTHER) (where OTHER is not TYPE_PARAMETER) may be in the qual package so long as AnnotatedTypeFactory.createSupportedTypeQualifiers() is overridden.
  • Constructor Details

    • SupportedQualsChecker

      public SupportedQualsChecker()
  • 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