Class Contract.Precondition

java.lang.Object
org.checkerframework.framework.util.Contract
org.checkerframework.framework.util.Contract.Precondition
Enclosing class:
Contract

public static class Contract.Precondition extends Contract
A precondition contract.
  • 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 qualifier
      annotation - the type qualifier that expressionString should have
      contractAnnotation - the precondition annotation that the programmer wrote; used for diagnostic messages