java.lang.Object
org.checkerframework.framework.util.typeinference8.constraint.QualifierTyping
All Implemented Interfaces:
Constraint, ReductionResult

public class QualifierTyping extends Object implements Constraint
Represents a constraint between two AbstractType. One of:
  • Constructor Details

    • QualifierTyping

      public QualifierTyping(AbstractQualifier Q, AbstractQualifier R, Constraint.Kind kind)
      Creates a qualifier typing constraint.
      Parameters:
      Q - the qualifiers on the left hand side of the constraint
      R - the qualifiers on the right hand side of the constraint
      kind - the kind of qualifier constraint
  • Method Details

    • getKind

      public Constraint.Kind getKind()
      Description copied from interface: Constraint
      Return the kind of constraint.
      Specified by:
      getKind in interface Constraint
      Returns:
      the kind of constraint
    • reduce

      public ReductionResult reduce(Java8InferenceContext context)
      Description copied from interface: Constraint
      Reduce this constraint what this means depends on the kind of constraint. Reduction can produce new bounds and/or new constraints.

      Reduction is documented in JLS section 18.2

      Specified by:
      reduce in interface Constraint
      Parameters:
      context - Java8InferenceContext
      Returns:
      the result of reducing this constraint
    • toString

      public String toString()
      Overrides:
      toString in class Object