Annotation Type EnsuresLockHeldIf
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) @ConditionalPostconditionAnnotation(qualifier=LockHeld.class) @InheritedAnnotation @Repeatable(List.class) public @interface EnsuresLockHeldIfIndicates that the given expressions are held if the method terminates successfully and returns the given result (either true or false).- See Also:
EnsuresLockHeld- See the Checker Framework Manual:
- Lock Checker, Example use of @EnsuresLockHeldIf
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]expressionReturns Java expressions whose values are locks that are held after the method returns the given result.booleanresultReturns the return value of the method under which the postconditions hold.
-
-
-
Element Detail
-
expression
java.lang.String[] expression
Returns Java expressions whose values are locks that are held after the method returns the given result.- Returns:
- Java expressions whose values are locks that are held after the method returns the given result
- See Also:
- Syntax of Java expressions
-
-