Class DefaultForTypeAnnotator

    • Constructor Detail

      • DefaultForTypeAnnotator

        public DefaultForTypeAnnotator​(AnnotatedTypeFactory typeFactory)
        Creates a DefaultForTypeAnnotator from the given checker, using that checker to determine the annotations that are in the type hierarchy.
    • Method Detail

      • addTypeKind

        public void addTypeKind​(javax.lang.model.type.TypeKind typeKind,
                                javax.lang.model.element.AnnotationMirror theQual)
        Add default qualifier, theQual, for the given TypeKind.
      • addAtmClass

        public void addAtmClass​(java.lang.Class<? extends AnnotatedTypeMirror> typeClass,
                                javax.lang.model.element.AnnotationMirror theQual)
        Add default qualifier, theQual, for the given AnnotatedTypeMirror class.
      • addTypes

        public void addTypes​(java.lang.Class<?> clazz,
                             javax.lang.model.element.AnnotationMirror theQual)
        Add default qualifier, theQual, for the given type.
      • scan

        protected java.lang.Void scan​(AnnotatedTypeMirror type,
                                      java.lang.Void p)
        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
        p - the parameter to use
        Returns:
        the result of visiting type
      • defaultTypeFromName

        public void defaultTypeFromName​(AnnotatedTypeMirror type,
                                        java.lang.String name)
        Apply defaults based on a variable name to a type.
        Parameters:
        type - a type to apply defaults to
        name - the name of the variable that has type type, or the name of the method whose return type is type