@AnnotatedFor(value="nullness") @Interned public static class DefaultQualifierKindHierarchy.DefaultQualifierKind extends Object implements QualifierKind
QualifierKind.
The fields in this class that refer to QualifierKinds are set when creating the
DefaultQualifierKindHierarchy. So the getter methods for these fields should not be
called until after the DefaultQualifierKindHierarchy is created.
| Modifier and Type | Field and Description |
|---|---|
protected @MonotonicNonNull DefaultQualifierKindHierarchy.DefaultQualifierKind |
bottom
The bottom of the hierarchy to which this belongs.
|
protected @Nullable DefaultQualifierKindHierarchy.DefaultQualifierKind |
poly
The polymorphic qualifier of the hierarchy to which this belongs.
|
protected @MonotonicNonNull Set<QualifierKind> |
strictSuperTypes
All the qualifier kinds that are a strict super qualifier kind of this.
|
protected @MonotonicNonNull DefaultQualifierKindHierarchy.DefaultQualifierKind |
top
The top of the hierarchy to which this belongs.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareToprotected @MonotonicNonNull DefaultQualifierKindHierarchy.DefaultQualifierKind top
protected @MonotonicNonNull DefaultQualifierKindHierarchy.DefaultQualifierKind bottom
protected @Nullable DefaultQualifierKindHierarchy.DefaultQualifierKind poly
protected @MonotonicNonNull Set<QualifierKind> strictSuperTypes
public @Interned @CanonicalName String getName()
QualifierKindgetName in interface QualifierKindpublic Class<? extends Annotation> getAnnotationClass()
QualifierKindgetAnnotationClass in interface QualifierKindpublic QualifierKind getTop()
QualifierKindgetTop in interface QualifierKindpublic boolean isTop()
QualifierKindisTop in interface QualifierKindpublic QualifierKind getBottom()
QualifierKindgetBottom in interface QualifierKindpublic boolean isBottom()
QualifierKindisBottom in interface QualifierKindpublic @Nullable QualifierKind getPolymorphic()
QualifierKindgetPolymorphic in interface QualifierKind@Pure public boolean isPoly()
QualifierKindisPoly in interface QualifierKindpublic boolean hasElements()
QualifierKindhasElements in interface QualifierKindpublic Set<? extends QualifierKind> getStrictSuperTypes()
QualifierKindgetStrictSuperTypes in interface QualifierKindpublic boolean isInSameHierarchyAs(QualifierKind other)
QualifierKindother are in the same hierarchy.isInSameHierarchyAs in interface QualifierKindother - a qualifier kindother are in the same hierarchypublic boolean isSubtypeOf(QualifierKind superQualKind)
QualifierKindsuperQualKind.isSubtypeOf in interface QualifierKindsuperQualKind - other qualifier kindsuperQualKind