java.lang.Object
org.checkerframework.framework.util.typeinference8.types.AbstractQualifier
org.checkerframework.framework.util.typeinference8.types.QualifierVar

public class QualifierVar extends AbstractQualifier
A QualifierVar is a variable for a polymorphic qualifier that needs to be viewpoint adapted at a call site.
  • Field Details

    • id

      protected final int id
      Identification number. Used only to make debugging easier.
    • invocation

      protected final ExpressionTree 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

      protected final AnnotationMirror polyQualifier
      The polymorphic qualifier associated with this var.
    • qualifierBounds

      public final EnumMap<VariableBounds.BoundKind,Set<AbstractQualifier>> qualifierBounds
      A mapping from a VariableBounds.BoundKind to a set of abstract qualifiers.
    • instantiation

      protected AnnotationMirror instantiation
      The instantiation of this variable. This is set during inference.
  • Constructor Details

    • QualifierVar

      public QualifierVar(ExpressionTree invocation, AnnotationMirror polyQualifier, Java8InferenceContext context)
      Creates a QualifierVar.
      Parameters:
      invocation - the expression for which this variable is being solved
      polyQualifier - polymorphic qualifier associated with this var
      context - the context
  • Method Details