@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @InheritedAnnotation public @interface EnsuresQualifierIf
result
. The expressions for
which the annotation must hold after the methods execution are indicated by
expression
and are specified using a string. The qualifier is
specified by qualifier
.
This annotation is only applicable to methods with a boolean return type.
Modifier and Type | Required Element and Description |
---|---|
String[] |
expression
The Java expressions for which the qualifier holds if the method
terminates with return value
result() . |
Class<? extends Annotation> |
qualifier
The qualifier that is guaranteed to hold if the method terminates with
return value
result() . |
boolean |
result
The return value of the method that needs to hold for the postcondition
to hold.
|
public abstract String[] expression
result()
.public abstract Class<? extends Annotation> qualifier
result()
.