Interface QualifierKindHierarchy
- All Known Implementing Classes:
- DefaultQualifierKindHierarchy,- UnitsAnnotatedTypeFactory.UnitsQualifierKindHierarchy
This interface holds information about the subtyping relationships between kinds of qualifiers. A
 "kind" of qualifier is its annotation class and is represented by the 
QualifierKind
 class. If a type system has more than one hierarchy, information about all hierarchies is stored
 in this class.
 The qualifier kind subtyping relationship may be an over-approximation of the qualifier subtyping relationship, for qualifiers that have elements/arguments. In other words, if a qualifier kind is a subtype of another qualifier kind, then qualifiers of those kinds may or may not be subtypes, depending on the values of any elements of the qualifiers. If qualifier kinds are not subtypes, then qualifiers of those kinds are never subtypes.
This interface is used by NoElementQualifierHierarchy and ElementQualifierHierarchy (but not MostlyNoElementQualifierHierarchy) to
 implement methods that compare AnnotationMirrors, such as QualifierHierarchy.isSubtype(AnnotationMirror, AnnotationMirror).
- 
Method SummaryModifier and TypeMethodDescriptionList<? extends QualifierKind>Returns a list of allQualifierKinds sorted in ascending order.static @CanonicalName StringannotationClassName(Class<? extends Annotation> clazz) Returns the canonical name ofclazz.Set<? extends QualifierKind>Returns the qualifier kinds that are the bottom qualifier in their hierarchies.Returns theQualifierKindfor the given annotation class name.Set<? extends QualifierKind>getTops()Returns the qualifier kinds that are the top qualifier in their hierarchies.Returns the greatest lower bound ofq1andq2, ornullif the qualifier kinds are not in the same hierarchy.Returns the least upper bound ofq1andq2, ornullif the qualifier kinds are not in the same hierarchy.
- 
Method Details- 
getTopsSet<? extends QualifierKind> getTops()Returns the qualifier kinds that are the top qualifier in their hierarchies.- Returns:
- the qualifier kinds that are the top qualifier in their hierarchies
 
- 
getBottomsSet<? extends QualifierKind> getBottoms()Returns the qualifier kinds that are the bottom qualifier in their hierarchies.- Returns:
- the qualifier kinds that are the bottom qualifier in their hierarchies
 
- 
leastUpperBoundReturns the least upper bound ofq1andq2, ornullif the qualifier kinds are not in the same hierarchy. Ignores elements/arguments (as QualifierKind always does).- Parameters:
- q1- a qualifier kind
- q2- a qualifier kind
- Returns:
- the least upper bound of q1andq2, ornullif the qualifier kinds are not in the same hierarchy
 
- 
greatestLowerBoundReturns the greatest lower bound ofq1andq2, ornullif the qualifier kinds are not in the same hierarchy. Ignores elements/arguments (as QualifierKind always does).- Parameters:
- q1- a qualifier kind
- q2- a qualifier kind
- Returns:
- the greatest lower bound of q1andq2, ornullif the qualifier kinds are not in the same hierarchy
 
- 
allQualifierKindsList<? extends QualifierKind> allQualifierKinds()Returns a list of allQualifierKinds sorted in ascending order.- Returns:
- a list of all QualifierKinds sorted in ascending order
 
- 
getQualifierKindReturns theQualifierKindfor the given annotation class name. Throws an exception if one does not exist.- Parameters:
- name- canonical name of an annotation class
- Returns:
- the QualifierKindfor the given annotation class name
 
- 
annotationClassNameReturns the canonical name ofclazz. Throws aTypeSystemErrorifclazzis anonymous or otherwise does not have a name.- Parameters:
- clazz- annotation class
- Returns:
- the canonical name of clazz
 
 
-