@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR}) @InheritedAnnotation 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
Java expression(s) that are a sequence with the given minimum length after the method returns
the given result.
|
boolean |
result
The return value of the method that needs to hold for the postcondition to hold.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
targetValue
The minimum number of elements in the sequence.
|
public abstract String[] expression