Class Contract.Precondition

  • Enclosing class:
    Contract

    public static class Contract.Precondition
    extends Contract
    A precondition contract.
    • Constructor Detail

      • Precondition

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