Class EvenOddChecker

All Implemented Interfaces:
Processor, OptionConfiguration

public final class EvenOddChecker extends BaseTypeChecker
A simple checker used for testing the Checker Framework. It treats the @Odd and @Even annotations as a subtype-style qualifiers with no special semantics.

This checker should only be used for testing the framework.

  • Constructor Details

    • EvenOddChecker

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