@Documented @Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) @ConditionalPostconditionAnnotation(qualifier=CalledMethods.class) @InheritedAnnotation @Repeatable(value=EnsuresCalledMethodsIf.List.class) public @interface EnsuresCalledMethodsIf
EnsuresCalledMethods,
CalledMethods| Modifier and Type | Required Element and Description |
|---|---|
String[] |
expression
Returns Java expressions that have had the given methods called on them after the method
returns
result(). |
String[] |
methods
The methods guaranteed to be invoked on the expressions if the result of the method is
result(). |
boolean |
result
Returns the return value of the method under which the postcondition holds.
|
public abstract String[] expression
result().public abstract boolean result
@QualifierArgument(value="value") public abstract String[] methods
result().result()