@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface QualifierArgument
PreconditionAnnotation
, PostconditionAnnotation
, or ConditionalPostconditionAnnotation
meta-annotation. The meta-annotation specifies the qualifier
taking the arguments.
For example, the following code declares a postcondition annotation for the MinLen
qualifier, allowing to specify its value:
@PostconditionAnnotation(qualifier = MinLen.class)
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR})
public @interface EnsuresMinLen {
String[] value();
@QualifierArgument("value")
int targetValue() default 0;
The value
element holds the expressions to which the qualifier applies and targetValue
holds the value for the value
argument of MinLen
.public abstract String value