Class Qualifier
java.lang.Object
org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
org.checkerframework.framework.util.typeinference8.types.Qualifier
A wrapper around an
AnnotationMirror.-
Field Summary
Fields inherited from class org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
context, hierarchyName -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQualifier(AnnotationMirror annotation, Java8InferenceContext context) A wrapper around anAnnotationMirror. -
Method Summary
Methods inherited from class org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
create, glb, lub, removeUnsolvedPolymorphic, sameHierarchy
-
Constructor Details
-
Qualifier
A wrapper around anAnnotationMirror.- Parameters:
annotation- the annotationcontext- the context
-
-
Method Details
-
getAnnotation
Returns the annotation.- Returns:
- the annotation
-
getInstantiation
-
isUnsolvedPolymorphic
public boolean isUnsolvedPolymorphic()Description copied from class:AbstractQualifierReturns true if this is a polymorphic annotation that inference does not solve for.A polymorphic annotation becomes a
QualifierVaronly when it appears in the signature of the invocation whose type arguments are being inferred. One that reaches inference some other way -- from the parameter type of an enclosing invocation, for instance -- is wrapped in aQualifier, where it is indistinguishable from a concrete qualifier. Requiring such a qualifier to equal a concrete one always fails, even though the polymorphic qualifier could be instantiated to it.- Overrides:
isUnsolvedPolymorphicin classAbstractQualifier- Returns:
- true if this is a polymorphic annotation that inference does not solve for
-
equals
-
hashCode
public int hashCode() -
toString
-