Class QualifierVar
java.lang.Object
org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
org.checkerframework.framework.util.typeinference8.types.QualifierVar
A
QualifierVar
is a variable for a polymorphic qualifier that needs to be viewpoint
adapted at a call site.-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
Identification number.protected AnnotationMirror
The instantiation of this variable.protected final ExpressionTree
The expression for which this variable is being solved.protected final AnnotationMirror
The polymorphic qualifier associated with this var.A mapping from aVariableBounds.BoundKind
to a set of abstract qualifiers.Fields inherited from class org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
context, hierarchyName
-
Constructor Summary
ConstructorDescriptionQualifierVar
(ExpressionTree invocation, AnnotationMirror polyQualifier, Java8InferenceContext context) Creates aQualifierVar
. -
Method Summary
Modifier and TypeMethodDescriptionaddBound
(VariableBounds.BoundKind kind, AbstractQualifier otherQual) Add a bound for this qualifier variableboolean
int
hashCode()
toString()
Methods inherited from class org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
create, glb, lub, sameHierarchy
-
Field Details
-
id
protected final int idIdentification number. Used only to make debugging easier. -
invocation
The expression for which this variable is being solved. Used to differentiate qualifier variables for two different invocations of the same method or constructor. -
polyQualifier
The polymorphic qualifier associated with this var. -
qualifierBounds
A mapping from aVariableBounds.BoundKind
to a set of abstract qualifiers. -
instantiation
The instantiation of this variable. This is set during inference.
-
-
Constructor Details
-
QualifierVar
public QualifierVar(ExpressionTree invocation, AnnotationMirror polyQualifier, Java8InferenceContext context) Creates aQualifierVar
.- Parameters:
invocation
- the expression for which this variable is being solvedpolyQualifier
- polymorphic qualifier associated with this varcontext
- the context
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
addBound
Add a bound for this qualifier variable- Parameters:
kind
- a bound kindotherQual
- the bound to add- Returns:
- a set of constraints generated from adding this bound.
-