Annotation Type EnsuresQualifier
- 
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) @InheritedAnnotation @Repeatable(List.class) public @interface EnsuresQualifierA postcondition annotation to indicate that a method ensures that certain expressions have a certain type qualifier once the method has successfully terminated. The expressions for which the qualifier holds after the method's execution are indicated byexpressionand are specified using a string. The qualifier is specified by thequalifierannotation element.Here is an example use:
Some type systems have specialized versions of this annotation, such as@EnsuresQualifier(expression = "p.f1", qualifier = Odd.class) void oddF1_1() { p.f1 = null; }org.checkerframework.checker.nullness.qual.EnsuresNonNullandorg.checkerframework.checker.lock.qual.EnsuresLockHeld.- See Also:
 EnsuresQualifierIf- See the Checker Framework Manual:
 - Syntax of Java expressions
 
 
- 
- 
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]expressionReturns the Java expressions for which the qualifier holds after successful method termination.java.lang.Class<? extends java.lang.annotation.Annotation>qualifierReturns the qualifier that is guaranteed to hold on successful termination of the method. 
 - 
 
- 
- 
Element Detail
- 
expression
java.lang.String[] expression
Returns the Java expressions for which the qualifier holds after successful method termination.- Returns:
 - the Java expressions for which the qualifier holds after successful method termination
 - See the Checker Framework Manual:
 - Syntax of Java expressions
 
 
 - 
 
 -