@Documented @Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) @ConditionalPostconditionAnnotation(qualifier=MinLen.class) @InheritedAnnotation @Repeatable(value=EnsuresMinLenIf.List.class) public @interface EnsuresMinLenIf
When the annotated method returns result, then all the expressions in expression are considered to be MinLen(targetValue).
MinLen| Modifier and Type | Required Element and Description |
|---|---|
String[] |
expression
Returns Java expression(s) that are a sequence with the given minimum length after the method
returns
result(). |
boolean |
result
Returns the return value of the method under which the postcondition to hold.
|
| Modifier and Type | Optional Element and Description |
|---|---|
int |
targetValue
Returns the minimum number of elements in the sequence.
|
public abstract String[] expression
result().result()public abstract boolean result
@QualifierArgument(value="value") public abstract int targetValue