Annotation Interface Pattern
@Target({METHOD,FIELD,ANNOTATION_TYPE,PARAMETER,TYPE_USE})
@Retention(RUNTIME)
@Repeatable(Pattern.Patterns.class)
@Documented
public @interface Pattern
The annotated
CharSequence must match the specified regular expression. The regular
expression follows the Java regular expression conventions see Pattern.
Accepts CharSequence. null elements are considered valid.
- Author:
- Emmanuel Bernard
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines severalPatternannotations on the same element. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
regexp
String regexpthe regular expression to match -
flags
-
message
-
groups
-