Class InitializationParentAnnotatedTypeFactory.InitializationQualifierHierarchy

    • Constructor Detail

      • InitializationQualifierHierarchy

        protected InitializationQualifierHierarchy()
        Create an InitializationQualifierHierarchy.
    • Method Detail

      • isSubtypeWithElements

        public boolean isSubtypeWithElements​(javax.lang.model.element.AnnotationMirror subAnno,
                                             QualifierKind subKind,
                                             javax.lang.model.element.AnnotationMirror superAnno,
                                             QualifierKind superKind)
        Description copied from class: MostlyNoElementQualifierHierarchy
        Returns true if subAnno is a subtype of superAnno. Both subAnno and superAnno are annotations with elements. subKind is a sub qualifier kind of superKind.
        Specified by:
        isSubtypeWithElements in class MostlyNoElementQualifierHierarchy
        Parameters:
        subAnno - possible subtype annotation; has elements
        subKind - the QualifierKind of subAnno
        superAnno - possible super annotation; has elements
        superKind - the QualifierKind of superAnno
        Returns:
        true if subAnno is a subtype of superAnno
      • lubTypeFrame

        protected javax.lang.model.type.TypeMirror lubTypeFrame​(javax.lang.model.type.TypeMirror a,
                                                                javax.lang.model.type.TypeMirror b)
        Returns the least upper bound of two Java basetypes (without annotations).
        Parameters:
        a - the first argument
        b - the second argument
        Returns:
        the lub of the two arguments