When the annotated method returns result, then all the expressions in expression are considered to be MinLen(targetValue).
MinLen
| Modifier and Type | Class and Description |
|---|---|
| public static @interface | EnsuresMinLenIf.List
A wrapper annotation that makes the |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | Returns: an array of Java expression(s), each of which is a sequence with the given minimum length after the method returnsresultReturns Java expression(s) that are a sequence with the given minimum length after the method
returns |
| public boolean | Returns: the return value of the method under which the postcondition to holdReturns the return value of the method under which the postcondition to hold. |
| public int | Returns: the minimum number of elements in the sequenceReturns the minimum number of elements in the sequence. |
| expression | back to summary |
|---|---|
| public String[] expression() Returns Java expression(s) that are a sequence with the given minimum length after the method
returns | |
| result | back to summary |
|---|---|
| public boolean result() Returns the return value of the method under which the postcondition to hold.
| |
| targetValue | back to summary |
|---|---|
| public int targetValue() Returns the minimum number of elements in the sequence.
| |
EnsuresMinLenIf annotation repeatable.
Programmers generally do not need to write this. It is created by Java when a programmer
writes more than one EnsuresMinLenIf annotation at the same location.
| Modifier and Type | Method and Description |
|---|---|
| public EnsuresMinLenIf[] |
| value | back to summary |
|---|---|
| public EnsuresMinLenIf[] value() Return the repeatable annotations.
| |