Contract.ConditionalPostcondition, Contract.Kind, Contract.Postcondition, Contract.Precondition
annotation, contractAnnotation, expression, kind
Constructor and Description |
---|
Precondition(String expression,
AnnotationMirror annotation,
AnnotationMirror contractAnnotation)
Create a precondition contract.
|
public Precondition(String expression, AnnotationMirror annotation, AnnotationMirror contractAnnotation)
expression
- the Java expression that should have a type qualifierannotation
- the type qualifier that expression
should havecontractAnnotation
- the precondition annotation that the programmer wrote; used for
diagnostic messages