public class GraphQualifierHierarchy extends MultiGraphQualifierHierarchy
This class is immutable and can be only created through MultiGraphQualifierHierarchy.MultiGraphFactory.
MultiGraphQualifierHierarchy.MultiGraphFactorybottoms, polyQualifiers, supertypesDirect, supertypesTransitive, tops| Constructor and Description |
|---|
GraphQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory f,
AnnotationMirror bottom) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finish(QualifierHierarchy qualHierarchy,
Map<AnnotationMirror,Set<AnnotationMirror>> fullMap,
Map<AnnotationMirror,AnnotationMirror> polyQualifiers,
Set<AnnotationMirror> tops,
Set<AnnotationMirror> bottoms,
Object... args)
Method to finalize the qualifier hierarchy before it becomes unmodifiable.
|
Set<? extends AnnotationMirror> |
getBottomAnnotations()
Returns the bottom type qualifiers in the hierarchy.
|
Set<? extends AnnotationMirror> |
getTopAnnotations()
Returns the top qualifiers for this hierarchy.
|
boolean |
isSubtype(Collection<? extends AnnotationMirror> rhs,
Collection<? extends AnnotationMirror> lhs)
Tests whether all qualifiers in
subQualifiers are a subqualifier or equal to the
qualifier in the same hierarchy in superQualifiers. |
addPolyRelations, findBottoms, findLub, findTops, getBottomAnnotation, getPolymorphicAnnotation, getTopAnnotation, greatestLowerBound, isPolymorphicQualifier, isSubtype, isValid, leastUpperBound, toString, transitiveClosureclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassertSameSize, assertSameSize, canHaveEmptyAnnotationSet, findAnnotationInHierarchy, findAnnotationInSameHierarchy, getWidth, greatestLowerBound, greatestLowerBounds, greatestLowerBounds, greatestLowerBoundsTypeVariable, greatestLowerBoundTypeVariable, isSubtype, isSubtype, isSubtypeTypeVariable, isSubtypeTypeVariable, leastUpperBound, leastUpperBounds, leastUpperBounds, leastUpperBoundsTypeVariable, leastUpperBoundTypeVariable, numberOfIterationsBeforeWidening, updateMappingToMutableSet, widenedUpperBoundpublic GraphQualifierHierarchy(MultiGraphQualifierHierarchy.MultiGraphFactory f, AnnotationMirror bottom)
protected void finish(QualifierHierarchy qualHierarchy, Map<AnnotationMirror,Set<AnnotationMirror>> fullMap, Map<AnnotationMirror,AnnotationMirror> polyQualifiers, Set<AnnotationMirror> tops, Set<AnnotationMirror> bottoms, Object... args)
MultiGraphQualifierHierarchyfinish in class MultiGraphQualifierHierarchypublic Set<? extends AnnotationMirror> getTopAnnotations()
The top qualifier is inferred from the hierarchy, as being the only one without any super qualifiers
getTopAnnotations in interface QualifierHierarchygetTopAnnotations in class MultiGraphQualifierHierarchypublic Set<? extends AnnotationMirror> getBottomAnnotations()
QualifierHierarchyQualifierHierarchy.getWidth().getBottomAnnotations in interface QualifierHierarchygetBottomAnnotations in class MultiGraphQualifierHierarchypublic boolean isSubtype(Collection<? extends AnnotationMirror> rhs, Collection<? extends AnnotationMirror> lhs)
QualifierHierarchysubQualifiers are a subqualifier or equal to the
qualifier in the same hierarchy in superQualifiers.isSubtype in interface QualifierHierarchyisSubtype in class MultiGraphQualifierHierarchyrhs - set of qualifiers; exactly one per hierarchylhs - set of qualifiers; exactly one per hierarchysubQualifiers are a subqualifier or equal to the
qualifier in the same hierarchy in superQualifiers