All Superinterfaces:
ReductionResult
All Known Implementing Classes:
AdditionalArgument, CheckedExceptionConstraint, Expression, QualifierTyping, TypeConstraint, Typing

public interface Constraint extends ReductionResult
A constraint. See JLS.
  • Method Details

    • getKind

      Constraint.Kind getKind()
      Return the kind of constraint.
      Returns:
      the kind of constraint
    • reduce

      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

      Parameters:
      context - Java8InferenceContext
      Returns:
      the result of reducing this constraint