Enum Class Contract.Kind
- All Implemented Interfaces:
Serializable
,Comparable<Contract.Kind>
,Constable
- Enclosing class:
- Contract
Enumerates the kinds of contracts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA conditional postcondition.A postcondition.A precondition. -
Field Summary
Modifier and TypeFieldDescriptionfinal String
Used for constructing error messages.final Class<? extends Annotation>
The built-in framework qualifier for this contract.final Class<? extends Annotation>
The built-in framework qualifier for repeated occurrences of this contract.final Class<? extends Annotation>
The meta-annotation identifying annotations of this kind. -
Method Summary
Modifier and TypeMethodDescriptionstatic Contract.Kind
Returns the enum constant of this class with the specified name.static Contract.Kind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRECONDITION
A precondition. -
POSTCONDITION
A postcondition. -
CONDITIONALPOSTCONDITION
A conditional postcondition.
-
-
Field Details
-
errorKey
Used for constructing error messages. -
metaAnnotation
The meta-annotation identifying annotations of this kind. -
frameworkContractClass
The built-in framework qualifier for this contract. -
frameworkContractListClass
The built-in framework qualifier for repeated occurrences of this contract.
-
-
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
-