Annotation Type RequiresQualifier
-
@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) @Repeatable(List.class) public @interface RequiresQualifierA precondition annotation to indicate that a method requires certain expressions to have a certain qualifier at the time of the call to the method. The expressions for which the annotation must hold after the method's execution are indicated byexpressionand are specified using a string. The qualifier is specified byqualifier.- See the Checker Framework Manual:
- Syntax of Java expressions
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]expressionReturns the Java expressions for which the annotation need to be present.java.lang.Class<? extends java.lang.annotation.Annotation>qualifierReturns the qualifier that is required.
-
-
-
Element Detail
-
expression
java.lang.String[] expression
Returns the Java expressions for which the annotation need to be present.- Returns:
- the Java expressions for which the annotation need to be present
- See the Checker Framework Manual:
- Syntax of Java expressions
-
-