Enum Class Constraint.Kind
java.lang.Object
java.lang.Enum<Constraint.Kind>
org.checkerframework.framework.util.typeinference8.constraint.Constraint.Kind
- All Implemented Interfaces:
Serializable
,Comparable<Constraint.Kind>
,Constable
- Enclosing interface:
- Constraint
A kind of Constraint.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA single constraint, that when reduced, generates additional argument constraints.< S <= T >
: A type argument S is contained by a type argument T.< Expression -> T >
: An expression is compatible in a loose invocation context with type T< LambdaExpression -> throws T>
: The checked exceptions thrown by the body of the LambdaExpression are declared by the throws clause of the function type derived from T.< MethodReferenceExpression -> throws T>
: The checked exceptions thrown by the referenced method are declared by the throws clause of the function type derived from T.< Q = R >
: A qualifier R is the same as a qualifier R.< Q <: R >
: A qualifier Q is a subtype of a qualifier R.< S <: T >
: A reference type S is a subtype of a reference type T< S -> T >
: A type S is compatible in a loose invocation context with type T< S = T >
: A type S is the same as a type T, or a type argument S is the same as type argument T. -
Method Summary
Modifier and TypeMethodDescriptionstatic Constraint.Kind
Returns the enum constant of this class with the specified name.static Constraint.Kind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPRESSION
< Expression -> T >
: An expression is compatible in a loose invocation context with type T -
TYPE_COMPATIBILITY
< S -> T >
: A type S is compatible in a loose invocation context with type T -
SUBTYPE
< S <: T >
: A reference type S is a subtype of a reference type T -
CONTAINED
< S <= T >
: A type argument S is contained by a type argument T. -
TYPE_EQUALITY
< S = T >
: A type S is the same as a type T, or a type argument S is the same as type argument T. -
LAMBDA_EXCEPTION
< LambdaExpression -> throws T>
: The checked exceptions thrown by the body of the LambdaExpression are declared by the throws clause of the function type derived from T. -
METHOD_REF_EXCEPTION
< MethodReferenceExpression -> throws T>
: The checked exceptions thrown by the referenced method are declared by the throws clause of the function type derived from T. -
QUALIFIER_SUBTYPE
< Q <: R >
: A qualifier Q is a subtype of a qualifier R. -
QUALIFIER_EQUALITY
< Q = R >
: A qualifier R is the same as a qualifier R. -
ADDITIONAL_ARG
A single constraint, that when reduced, generates additional argument constraints.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-