protected final class UpperBoundAnnotatedTypeFactory.UpperBoundQualifierHierarchy extends MultiGraphQualifierHierarchy
MultiGraphQualifierHierarchy.MultiGraphFactorybottoms, polymorphicQualifier, polyQualifiers, supertypesGraph, supertypesMap, tops| Constructor and Description |
|---|
UpperBoundQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
AnnotationMirror |
greatestLowerBound(AnnotationMirror a1,
AnnotationMirror a2)
Returns the greatest lower bound for the qualifiers a1 and a2.
|
boolean |
implementsWidening()
Returns whether or not this hierarchy implements
QualifierHierarchy.widenUpperBound(AnnotationMirror,
AnnotationMirror) |
boolean |
isSubtype(AnnotationMirror subAnno,
AnnotationMirror superAnno)
Computes subtyping as per the subtyping in the qualifier hierarchy structure unless both
annotations are the same.
|
AnnotationMirror |
leastUpperBound(AnnotationMirror a1,
AnnotationMirror a2)
Determines the least upper bound of a1 and a2.
|
AnnotationMirror |
widenUpperBound(AnnotationMirror a,
AnnotationMirror b)
If the type hierarchy has an infinite ascending chain, then the dataflow analysis might never
reach a fixed point.
|
addPolyRelations, buildFullMap, findBottoms, findLub, findTops, finish, getBottomAnnotation, getBottomAnnotations, getPolymorphicAnnotation, getTopAnnotation, getTopAnnotations, getTypeQualifiers, greatestLowerBoundTypeVariable, isSubtype, isSubtypeTypeVariable, isSubtypeTypeVariable, leastUpperBoundTypeVariable, toStringcanHaveEmptyAnnotationSet, findAnnotationInHierarchy, findAnnotationInSameHierarchy, findCorrespondingAnnotation, getAnnotationInHierarchy, getWidth, greatestLowerBound, greatestLowerBounds, greatestLowerBounds, greatestLowerBoundsTypeVariable, isSubtype, isSubtype, isValid, leastUpperBound, leastUpperBounds, leastUpperBounds, leastUpperBoundsTypeVariable, replacePolyAll, updateMappingToMutableSetpublic UpperBoundQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory factory)
factory - MultiGraphFactory to use to construct thispublic AnnotationMirror greatestLowerBound(AnnotationMirror a1, AnnotationMirror a2)
QualifierHierarchyThe two qualifiers have to be from the same qualifier hierarchy. Otherwise, null will be returned.
greatestLowerBound in class MultiGraphQualifierHierarchya1 - first annotationa2 - second annotationpublic AnnotationMirror leastUpperBound(AnnotationMirror a1, AnnotationMirror a2)
leastUpperBound in class MultiGraphQualifierHierarchypublic AnnotationMirror widenUpperBound(AnnotationMirror a, AnnotationMirror b)
QualifierHierarchyQualifierHierarchy.implementsWidening() and return true.
Otherwise, returns the least upper bound of the two annotations.
widenUpperBound in class QualifierHierarchya - annotationb - annotationpublic boolean implementsWidening()
QualifierHierarchyQualifierHierarchy.widenUpperBound(AnnotationMirror,
AnnotationMirror)implementsWidening in class QualifierHierarchyQualifierHierarchy.widenUpperBound(AnnotationMirror,
AnnotationMirror)public boolean isSubtype(AnnotationMirror subAnno, AnnotationMirror superAnno)
isSubtype in class MultiGraphQualifierHierarchysubAnno - the sub qualifiersuperAnno - the super qualifier