Class IrrelevantTypeAnnotator

All Implemented Interfaces:
AnnotatedTypeVisitor<Void,Void>

public class IrrelevantTypeAnnotator extends TypeAnnotator
Adds annotations to types that are not relevant specified by the RelevantJavaTypes on a checker.
  • Constructor Details

    • IrrelevantTypeAnnotator

      public IrrelevantTypeAnnotator(GenericAnnotatedTypeFactory typeFactory, Set<? extends AnnotationMirror> annotations)
      Annotate every type with the annotationMirror except for those whose underlying Java type is one of (or a subtype of) a class in relevantClasses. (Only adds annotationMirror if no annotation in the hierarchy are already on the type.) If relevantClasses includes Object[].class, then all arrays are considered relevant.
      Parameters:
      typeFactory - AnnotatedTypeFactory
      annotations - annotations to add
  • Method Details