Class Contract.Postcondition
java.lang.Object
org.checkerframework.framework.util.Contract
org.checkerframework.framework.util.Contract.Postcondition
- Enclosing class:
Contract
A postcondition contract.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.checkerframework.framework.util.Contract
Contract.ConditionalPostcondition, Contract.Kind, Contract.Postcondition, Contract.Precondition
-
Field Summary
Fields inherited from class org.checkerframework.framework.util.Contract
annotation, contractAnnotation, expressionString, kind
-
Constructor Summary
ConstructorDescriptionPostcondition
(String expressionString, AnnotationMirror annotation, AnnotationMirror contractAnnotation) Create a postcondition contract. -
Method Summary
-
Constructor Details
-
Postcondition
public Postcondition(String expressionString, AnnotationMirror annotation, AnnotationMirror contractAnnotation) Create a postcondition contract.- Parameters:
expressionString
- the Java expression that should have a type qualifierannotation
- the type qualifier thatexpressionString
should havecontractAnnotation
- the postcondition annotation that the programmer wrote; used for diagnostic messages
-