Class ListTypeAnnotator

All Implemented Interfaces:
AnnotatedTypeVisitor<Void,Void>

public final class ListTypeAnnotator extends TypeAnnotator
ListTypeAnnotator is a TypeAnnotator that executes a list of TypeAnnotator for each type visited.

Checkers should not extend ListTypeAnnotator; they should instead pass a custom TypeAnnotator to the constructor.

See Also:
  • Constructor Details

    • ListTypeAnnotator

      public ListTypeAnnotator(TypeAnnotator... annotators)
      Create a new ListTypeAnnotator.
      Parameters:
      annotators - the annotators that will be executed for each type scanned by this TypeAnnotator. They are executed in the order passed in.
    • ListTypeAnnotator

      public ListTypeAnnotator(List<TypeAnnotator> annotators)
      Parameters:
      annotators - the annotators that will be executed for each type scanned by this TypeAnnotator. They are executed in the order passed in.
  • Method Details