Class IrrelevantTypeAnnotator

    • Constructor Detail

      • IrrelevantTypeAnnotator

        public IrrelevantTypeAnnotator​(GenericAnnotatedTypeFactory atypeFactory)
        Annotate every type except for those whose underlying Java type is one of (or a subtype or supertype 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:
        atypeFactory - a GenericAnnotatedTypeFactory
    • Method Detail

      • scan

        protected java.lang.Void scan​(AnnotatedTypeMirror type,
                                      java.lang.Void aVoid)
        Description copied from class: AnnotatedTypeScanner
        Scan type by calling type.accept(this, p); this method may be overridden by subclasses.
        Overrides:
        scan in class AnnotatedTypeScanner<java.lang.Void,​java.lang.Void>
        Parameters:
        type - type to scan
        aVoid - the parameter to use
        Returns:
        the result of visiting type