Class SubtypeIsSubsetQualifierHierarchy


  • @AnnotatedFor("nullness")
    public class SubtypeIsSubsetQualifierHierarchy
    extends MostlyNoElementQualifierHierarchy
    A QualifierHierarchy where, when a qualifier has arguments, the subtype relation is determined by a subset test on the elements (arguments). The elements must be strings.

    This assumes that if the lub or glb of two qualifiers has elements, then both of the arguments had the same kind as the result does.

    • Constructor Detail

      • SubtypeIsSubsetQualifierHierarchy

        public SubtypeIsSubsetQualifierHierarchy​(java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>> qualifierClasses,
                                                 javax.annotation.processing.ProcessingEnvironment processingEnv,
                                                 GenericAnnotatedTypeFactory<?,​?,​?,​?> atypeFactory)
        Creates a SubtypeIsSubsetQualifierHierarchy from the given classes.
        Parameters:
        qualifierClasses - classes of annotations that are the qualifiers for this hierarchy
        processingEnv - processing environment
        atypeFactory - the associated type factory