Class DefaultQualifierKindHierarchy.DefaultQualifierKind
java.lang.Object
org.checkerframework.framework.util.DefaultQualifierKindHierarchy.DefaultQualifierKind
- All Implemented Interfaces:
- Comparable<QualifierKind>,- QualifierKind
- Enclosing class:
- DefaultQualifierKindHierarchy
@AnnotatedFor("nullness")
@Interned
public static class DefaultQualifierKindHierarchy.DefaultQualifierKind
extends Object
implements QualifierKind
The default implementation of 
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.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe bottom of the hierarchy to which this belongs.The polymorphic qualifier of the hierarchy to which this belongs.protected @MonotonicNonNull Set<QualifierKind>All the qualifier kinds that are a strict super qualifier kind of this.The top of the hierarchy to which this belongs.
- 
Method SummaryModifier and TypeMethodDescriptionClass<? extends Annotation>Returns the annotation class for this.Returns the bottom qualifier kind of the hierarchy to which this qualifier kind belongs.getName()Returns the canonical name of the annotation class of this.Returns the polymorphic qualifier kind of the hierarchy to which this qualifier kind belongs, or null if one does not exist.Set<? extends QualifierKind>All the qualifier kinds that are a strict super qualifier of this qualifier.getTop()Returns the top qualifier kind of the hierarchy to which this qualifier kind belongs.booleanReturns true if the annotation class this qualifier kind represents has annotation elements/arguments.booleanisBottom()Returns true if this is the bottom qualifier of its hierarchy.booleanisInSameHierarchyAs(QualifierKind other) Returns true if this andotherare in the same hierarchy.booleanisPoly()Returns true if this is polymorphic.booleanisSubtypeOf(QualifierKind superQualKind) Returns true if this qualifier kind is a subtype of or equal tosuperQualKind.booleanisTop()Returns true if this is the top qualifier of its hierarchy.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.checkerframework.framework.util.QualifierKindcompareTo
- 
Field Details- 
topThe top of the hierarchy to which this belongs.
- 
bottomThe bottom of the hierarchy to which this belongs.
- 
polyThe polymorphic qualifier of the hierarchy to which this belongs.
- 
strictSuperTypesAll the qualifier kinds that are a strict super qualifier kind of this. Does not include this qualifier kind itself.
 
- 
- 
Method Details- 
getNameDescription copied from interface:QualifierKindReturns the canonical name of the annotation class of this.- Specified by:
- getNamein interface- QualifierKind
- Returns:
- the canonical name of the annotation class of this
 
- 
getAnnotationClassDescription copied from interface:QualifierKindReturns the annotation class for this.- Specified by:
- getAnnotationClassin interface- QualifierKind
- Returns:
- the annotation class for this
 
- 
getTopDescription copied from interface:QualifierKindReturns the top qualifier kind of the hierarchy to which this qualifier kind belongs.- Specified by:
- getTopin interface- QualifierKind
- Returns:
- the top qualifier kind of the hierarchy to which this qualifier kind belongs
 
- 
isToppublic boolean isTop()Description copied from interface:QualifierKindReturns true if this is the top qualifier of its hierarchy.- Specified by:
- isTopin interface- QualifierKind
- Returns:
- true if this is the top qualifier of its hierarchy
 
- 
getBottomDescription copied from interface:QualifierKindReturns the bottom qualifier kind of the hierarchy to which this qualifier kind belongs.- Specified by:
- getBottomin interface- QualifierKind
- Returns:
- the bottom qualifier kind of the hierarchy to which this qualifier kind belongs
 
- 
isBottompublic boolean isBottom()Description copied from interface:QualifierKindReturns true if this is the bottom qualifier of its hierarchy.- Specified by:
- isBottomin interface- QualifierKind
- Returns:
- true if this is the bottom qualifier of its hierarchy
 
- 
getPolymorphicDescription copied from interface:QualifierKindReturns the polymorphic qualifier kind of the hierarchy to which this qualifier kind belongs, or null if one does not exist.- Specified by:
- getPolymorphicin interface- QualifierKind
- Returns:
- the polymorphic qualifier kind of the hierarchy to which this qualifier kind belongs, or null if one does not exist
 
- 
isPolyDescription copied from interface:QualifierKindReturns true if this is polymorphic.- Specified by:
- isPolyin interface- QualifierKind
- Returns:
- true if this is polymorphic
 
- 
hasElementspublic boolean hasElements()Description copied from interface:QualifierKindReturns true if the annotation class this qualifier kind represents has annotation elements/arguments.- Specified by:
- hasElementsin interface- QualifierKind
- Returns:
- true if the annotation class this qualifier kind represents has elements/arguments
 
- 
getStrictSuperTypesDescription copied from interface:QualifierKindAll the qualifier kinds that are a strict super qualifier of this qualifier. Does not include this qualifier kind itself.- Specified by:
- getStrictSuperTypesin interface- QualifierKind
- Returns:
- all the qualifier kinds that are a strict super qualifier of this qualifier
 
- 
isInSameHierarchyAsDescription copied from interface:QualifierKindReturns true if this andotherare in the same hierarchy.- Specified by:
- isInSameHierarchyAsin interface- QualifierKind
- Parameters:
- other- a qualifier kind
- Returns:
- true if this and otherare in the same hierarchy
 
- 
isSubtypeOfDescription copied from interface:QualifierKindReturns true if this qualifier kind is a subtype of or equal tosuperQualKind.- Specified by:
- isSubtypeOfin interface- QualifierKind
- Parameters:
- superQualKind- other qualifier kind
- Returns:
- true if this qualifier kind is a subtype of or equal to superQualKind
 
- 
toString
 
-