public static class ContractsUtils.Precondition extends ContractsUtils.Contract
ContractsUtils.Contract.Kindannotation, contractAnnotation, expression, kind| Constructor and Description |
|---|
Precondition(java.lang.String expression,
javax.lang.model.element.AnnotationMirror annotation,
javax.lang.model.element.AnnotationMirror contractAnnotation)
Create a precondition contract.
|
equals, hashCodepublic Precondition(java.lang.String expression,
javax.lang.model.element.AnnotationMirror annotation,
javax.lang.model.element.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