Class Contract.Postcondition

  • Enclosing class:
    Contract

    public static class Contract.Postcondition
    extends Contract
    A postcondition contract.
    • Constructor Detail

      • Postcondition

        public Postcondition​(java.lang.String expressionString,
                             javax.lang.model.element.AnnotationMirror annotation,
                             javax.lang.model.element.AnnotationMirror contractAnnotation)
        Create a postcondition contract.
        Parameters:
        expressionString - the Java expression that should have a type qualifier
        annotation - the type qualifier that expressionString should have
        contractAnnotation - the postcondition annotation that the programmer wrote; used for diagnostic messages