@AnnotatedFor(value="nullness") @Interned public static class DefaultQualifierKindHierarchy.DefaultQualifierKind extends Object implements QualifierKind
QualifierKind
.
The fields in this class that refer to QualifierKind
s 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, wait
compareTo
protected @MonotonicNonNull DefaultQualifierKindHierarchy.DefaultQualifierKind top
protected @MonotonicNonNull DefaultQualifierKindHierarchy.DefaultQualifierKind bottom
protected @Nullable DefaultQualifierKindHierarchy.DefaultQualifierKind poly
protected @MonotonicNonNull Set<QualifierKind> strictSuperTypes
public @Interned @CanonicalName String getName()
QualifierKind
getName
in interface QualifierKind
public Class<? extends Annotation> getAnnotationClass()
QualifierKind
getAnnotationClass
in interface QualifierKind
public QualifierKind getTop()
QualifierKind
getTop
in interface QualifierKind
public boolean isTop()
QualifierKind
isTop
in interface QualifierKind
public QualifierKind getBottom()
QualifierKind
getBottom
in interface QualifierKind
public boolean isBottom()
QualifierKind
isBottom
in interface QualifierKind
public @Nullable QualifierKind getPolymorphic()
QualifierKind
getPolymorphic
in interface QualifierKind
@Pure public boolean isPoly()
QualifierKind
isPoly
in interface QualifierKind
public boolean hasElements()
QualifierKind
hasElements
in interface QualifierKind
public Set<? extends QualifierKind> getStrictSuperTypes()
QualifierKind
getStrictSuperTypes
in interface QualifierKind
public boolean isInSameHierarchyAs(QualifierKind other)
QualifierKind
other
are in the same hierarchy.isInSameHierarchyAs
in interface QualifierKind
other
- a qualifier kindother
are in the same hierarchypublic boolean isSubtypeOf(QualifierKind superQualKind)
QualifierKind
superQualKind
.isSubtypeOf
in interface QualifierKind
superQualKind
- other qualifier kindsuperQualKind