@AnnotatedFor(value="nullness") @Interned public interface QualifierKind extends Comparable<QualifierKind>
@IndexFor("a")
and
@IndexFor("b")
.
A QualifierKind
holds information about the relationship between itself and other
QualifierKind
s.
Exactly one qualifier kind is created for each annotation class.
The set of all QualifierKinds for a checker is like an enum. One QualifierKind is like an enum constant in that they are immutable after initialization and only a finite number exist per type system.
Modifier and Type | Method and Description |
---|---|
default int |
compareTo(QualifierKind o) |
Class<? extends Annotation> |
getAnnotationClass()
Returns the annotation class for this.
|
QualifierKind |
getBottom()
Returns the bottom qualifier kind of the hierarchy to which this qualifier kind belongs.
|
@Interned @CanonicalName String |
getName()
Returns the canonical name of the annotation class of this.
|
@Nullable QualifierKind |
getPolymorphic()
Returns the polymorphic qualifier kind of the hierarchy to which this qualifier kind belongs,
or null if one does not exist.
|
Set<? extends QualifierKind> |
getStrictSuperTypes()
All the qualifier kinds that are a strict super qualifier of this qualifier.
|
QualifierKind |
getTop()
Returns the top qualifier kind of the hierarchy to which this qualifier kind belongs.
|
boolean |
hasElements()
Returns true if the annotation class this qualifier kind represents has annotation
elements/arguments.
|
boolean |
isBottom()
Returns true if this is the bottom qualifier of its hierarchy.
|
boolean |
isInSameHierarchyAs(QualifierKind other)
Returns true if this and
other are in the same hierarchy. |
boolean |
isPoly()
Returns true if this is polymorphic.
|
boolean |
isSubtypeOf(QualifierKind superQualKind)
Returns true if this qualifier kind is a subtype of or equal to
superQualKind . |
boolean |
isTop()
Returns true if this is the top qualifier of its hierarchy.
|
@Interned @CanonicalName String getName()
Class<? extends Annotation> getAnnotationClass()
QualifierKind getTop()
boolean isTop()
QualifierKind getBottom()
boolean isBottom()
@Nullable QualifierKind getPolymorphic()
@Pure boolean isPoly()
boolean hasElements()
Set<? extends QualifierKind> getStrictSuperTypes()
boolean isInSameHierarchyAs(QualifierKind other)
other
are in the same hierarchy.other
- a qualifier kindother
are in the same hierarchyboolean isSubtypeOf(QualifierKind superQualKind)
superQualKind
.superQualKind
- other qualifier kindsuperQualKind
default int compareTo(QualifierKind o)
compareTo
in interface Comparable<QualifierKind>