Annotation Type 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:
EnsuresCalledMethods
,CalledMethods
- See the Checker Framework Manual:
- Called Methods Checker
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]
expression
Returns Java expressions that have had the given methods called on them after the method returnsresult()
.java.lang.String[]
methods
The methods guaranteed to be invoked on the expressions if the result of the method isresult()
.boolean
result
Returns the return value of the method under which the postcondition holds.
-
-
-
Element Detail
-
expression
java.lang.String[] expression
Returns 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
@QualifierArgument("value") java.lang.String[] 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()
-
-