Annotation Type RequiredModifiers
-
@Documented @Retention(CLASS) @Target(ANNOTATION_TYPE) public @interface RequiredModifiers
Annotation declaring that the target annotation requires all the specified modifiers. For example, an annotation declared as:{@code
- Author:
- benyu@google.com (Jige Yu)
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Modifier[]
modifier
The required modifiers.javax.lang.model.element.Modifier[]
value
Deprecated.usemodifier()
instead
-
-
-
Element Detail
-
value
@Deprecated javax.lang.model.element.Modifier[] value
Deprecated.usemodifier()
instead- Default:
- {}
-
-
-
modifier
Modifier[] modifier
The required modifiers. The annotated element is illegal if any one or more of these modifiers are absent.Empty array has the same effect as not applying this annotation at all; duplicates are allowed but have no effect.
- Default:
- {}
-
-