public class ConstraintsUtil extends java.lang.Object
Constructor and Description |
---|
ConstraintsUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkBoundsAreSatisfied(ConstraintSystem constraintSystem,
boolean substituteOtherTypeParametersInBounds) |
static boolean |
checkUpperBoundIsSatisfied(ConstraintSystem constraintSystem,
TypeParameterDescriptor typeParameter,
boolean substituteOtherTypeParametersInBound) |
static TypeParameterDescriptor |
getFirstConflictingParameter(ConstraintSystem constraintSystem) |
static JetType |
getSafeValue(ConstraintSystem constraintSystem,
TypeParameterDescriptor typeParameter) |
static java.util.Collection<TypeSubstitutor> |
getSubstitutorsForConflictingParameters(ConstraintSystem constraintSystem) |
static JetType |
getValue(TypeConstraints typeConstraints) |
static java.util.Set<JetType> |
getValues(TypeConstraints typeConstraints) |
public ConstraintsUtil()
@NotNull public static java.util.Set<JetType> getValues(@Nullable TypeConstraints typeConstraints)
@Nullable public static JetType getValue(@Nullable TypeConstraints typeConstraints)
@Nullable public static TypeParameterDescriptor getFirstConflictingParameter(@NotNull ConstraintSystem constraintSystem)
@NotNull public static java.util.Collection<TypeSubstitutor> getSubstitutorsForConflictingParameters(@NotNull ConstraintSystem constraintSystem)
@NotNull public static JetType getSafeValue(@NotNull ConstraintSystem constraintSystem, @NotNull TypeParameterDescriptor typeParameter)
public static boolean checkUpperBoundIsSatisfied(@NotNull ConstraintSystem constraintSystem, @NotNull TypeParameterDescriptor typeParameter, boolean substituteOtherTypeParametersInBound)
public static boolean checkBoundsAreSatisfied(@NotNull ConstraintSystem constraintSystem, boolean substituteOtherTypeParametersInBounds)