Class SubtypeIsSupersetQualifierHierarchy


  • @AnnotatedFor("nullness")
    public class SubtypeIsSupersetQualifierHierarchy
    extends MostlyNoElementQualifierHierarchy
    A QualifierHierarchy where, when a qualifier has arguments, the subtype relation is determined by a superset 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

      • SubtypeIsSupersetQualifierHierarchy

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