public enum ConstraintType extends java.lang.Enum<ConstraintType> implements java.lang.Comparable<ConstraintType>
| Enum Constant and Description |
|---|
EXPECTED_TYPE |
PARAMETER_BOUND |
RECEIVER |
VALUE_ARGUMENT |
| Modifier and Type | Method and Description |
|---|---|
SubtypingConstraint |
assertSubtyping(JetType subtype,
JetType supertype) |
java.lang.String |
makeErrorMessage(SubtypingConstraint constraint) |
static ConstraintType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintType RECEIVER
public static final ConstraintType VALUE_ARGUMENT
public static final ConstraintType EXPECTED_TYPE
public static final ConstraintType PARAMETER_BOUND
public static ConstraintType[] values()
for (ConstraintType c : ConstraintType.values()) System.out.println(c);
public static ConstraintType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is null@NotNull public SubtypingConstraint assertSubtyping(@NotNull JetType subtype, @NotNull JetType supertype)
@NotNull public java.lang.String makeErrorMessage(@NotNull SubtypingConstraint constraint)