Class ListTreeAnnotator

All Implemented Interfaces:
TreeVisitor<Void,AnnotatedTypeMirror>
Direct Known Subclasses:
DebugListTreeAnnotator

public class ListTreeAnnotator extends TreeAnnotator
ListTreeAnnotator is a TreeVisitor that executes a list of TreeAnnotator for each tree visited.

Checkers should not extend ListTreeAnnotator; they should instead pass a custom TreeAnnotator to the constructor.

See Also:
  • Field Details

  • Constructor Details

    • ListTreeAnnotator

      public ListTreeAnnotator(TreeAnnotator... annotators)
      Parameters:
      annotators - the annotators that will be executed for each tree scanned by this TreeAnnotator. They are executed in the order passed in.
    • ListTreeAnnotator

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