Class Contract.Precondition
java.lang.Object
org.checkerframework.framework.util.Contract
org.checkerframework.framework.util.Contract.Precondition
- Enclosing class:
- Contract
A precondition 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
ConstructorDescriptionPrecondition
(String expressionString, AnnotationMirror annotation, AnnotationMirror contractAnnotation) Create a precondition contract. -
Method Summary
-
Constructor Details
-
Precondition
public Precondition(String expressionString, AnnotationMirror annotation, AnnotationMirror contractAnnotation) Create a precondition contract.- Parameters:
expressionString
- the Java expression that should have a type qualifierannotation
- the type qualifier thatexpressionString
should havecontractAnnotation
- the precondition annotation that the programmer wrote; used for diagnostic messages
-