Enum Class Contract.Kind
- All Implemented Interfaces:
- Serializable,- Comparable<Contract.Kind>,- Constable
- Enclosing class:
- Contract
Enumerates the kinds of contracts.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionA conditional postcondition.A postcondition.A precondition.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal StringUsed for constructing error messages.final Class<? extends Annotation>The built-in framework qualifier for this contract: RequiresQualifier, EnsuresQualifier, or EnsuresQualifierIf.final Class<? extends Annotation>The built-in framework qualifier for repeated occurrences of this contract: RequiresQualifier.List, EnsuresQualifier.List, or EnsuresQualifierIf.List.final Class<? extends Annotation>The meta-annotation identifying annotations of this kind: PreconditionAnnotation, PostconditionAnnotation, or ConditionalPostconditionAnnotation.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Contract.KindReturns 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- 
PRECONDITIONA precondition.
- 
POSTCONDITIONA postcondition.
- 
CONDITIONALPOSTCONDITIONA conditional postcondition.
 
- 
- 
Field Details- 
errorKeyUsed for constructing error messages.
- 
metaAnnotationThe meta-annotation identifying annotations of this kind: PreconditionAnnotation, PostconditionAnnotation, or ConditionalPostconditionAnnotation.
- 
frameworkContractClassThe built-in framework qualifier for this contract: RequiresQualifier, EnsuresQualifier, or EnsuresQualifierIf.
- 
frameworkContractListClassThe built-in framework qualifier for repeated occurrences of this contract: RequiresQualifier.List, EnsuresQualifier.List, or EnsuresQualifierIf.List.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-