Annotation Interface EnsuresCalledMethodsIf
@Documented
@Retention(RUNTIME)
@Target({METHOD,CONSTRUCTOR})
@ConditionalPostconditionAnnotation(qualifier=CalledMethods.class)
@InheritedAnnotation
@Repeatable(List.class)
public @interface EnsuresCalledMethodsIf
Indicates that the method, if it terminates with the given result, invokes the given methods on
the given expressions.
- See Also:
- See the Checker Framework Manual:
- Called Methods Checker
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic @interface
A wrapper annotation that makes theEnsuresCalledMethodsIf
annotation repeatable. -
Required Element Summary
Modifier and TypeRequired ElementDescriptionString[]
Returns Java expressions that have had the given methods called on them after the method returnsresult()
.String[]
The methods guaranteed to be invoked on the expressions if the result of the method isresult()
.boolean
Returns the return value of the method under which the postcondition holds.
-
Element Details
-
result
boolean resultReturns the return value of the method under which the postcondition holds.- Returns:
- the return value of the method under which the postcondition holds
-
expression
String[] expressionReturns Java expressions that have had the given methods called on them after the method returnsresult()
.- Returns:
- an array of Java expressions
- See the Checker Framework Manual:
- Syntax of Java expressions
-
methods
The methods guaranteed to be invoked on the expressions if the result of the method isresult()
.- Returns:
- the methods guaranteed to be invoked on the expressions if the result of the method
is
result()
-