public static enum ConstraintFormula.Kind extends java.lang.Enum<ConstraintFormula.Kind>
Enum Constant and Description |
---|
CONTAINMENT
A containment constraint between two types implies that one contains the
other, as described by
Types.isContainedBy(Type, Type) . |
EQUALITY
An equality constraint between two types implies that they are exactly
identical.
|
LOOSE_COMPATIBILILTY
A loose compatibility constraint implies that two types be compatible within
a loose invocation context, as described by
Types.isLooseInvocationContextCompatible(Type, Type) . |
SUBTYPE
A subtype constraint between two types implies that the first be assignable
to the second.
|
Modifier and Type | Method and Description |
---|---|
static ConstraintFormula.Kind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConstraintFormula.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConstraintFormula.Kind LOOSE_COMPATIBILILTY
Types.isLooseInvocationContextCompatible(Type, Type)
.public static final ConstraintFormula.Kind SUBTYPE
public static final ConstraintFormula.Kind CONTAINMENT
Types.isContainedBy(Type, Type)
.public static final ConstraintFormula.Kind EQUALITY
public static ConstraintFormula.Kind[] values()
for (ConstraintFormula.Kind c : ConstraintFormula.Kind.values()) System.out.println(c);
public static ConstraintFormula.Kind 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